home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Abstracts / Development⁄Source Abstract < prev    next >
Text File  |  1993-12-31  |  154KB  |  4,053 lines

  1. Abstracts from files in info-mac/dev/src as of Sun Dec 26 00:42:53 PST 1993
  2.  
  3.  
  4. #### BINHEX     ad-invert-shapes-101-c.hqx   ****
  5.  
  6. From: joe@clipper.cb.att.com
  7. Date: Sat, 9 Oct 93 15:44:10 EDT
  8. Subject: InvertShapes 1.0.1
  9.  
  10.  
  11.     This is version 1.0.1 of the InvertShapes AfterDark
  12.     screensaver module. This version corrects the "random" 
  13.     feature and the credit string.
  14.  
  15.     Source code is included.
  16.  
  17.     - j.t.judge
  18.  
  19.  
  20. #### BINHEX     adobe-premiere-developer-c.hqx   ****
  21.  
  22. Date: Tue, 5 May 92 14:39 +1200 
  23. From: "Lawrence D'Oliveiro, Waikato University, Hamilton, NZ"
  24. Subject: info-mac/tech/adobe-premiere-developer.hqx 
  25.  
  26. The following archive includes information and sample code (in MPW C
  27. and assembler) for writing your own add-ons for Adobe Premiere. You can
  28. create custom visual transition effects, video filters, and audio filters.
  29.  
  30. I found this originally posted on AppleLink by Randy Ubillos, author
  31. of Premiere.
  32.  
  33. Lawrence D'Oliveiro, Waikato University, Hamilton, New Zealand.
  34. ldo@waikato.ac.nz
  35. --------------------------------------------------------------------------------
  36.  
  37. #### BINHEX     apple-event-interface-plog.hqx   ****
  38.  
  39. Date: Mon, 19 Oct 1992 08:29:16 +0100 
  40. From: Stephen.Cooper@csd.uu.se (Stephen Cooper)
  41. Subject: AE Interface.pl v1.01 
  42.  
  43. This code works only with LPA MacProlog 4.5 or better.  
  44.  
  45. AE Interface.pl is the source code for a prolog interface to Apple events. 
  46. This program allows retreiving succesive answers to prolog goals and
  47. translation of the answers to e.g., HyperTalk commands.  The answers are in
  48. text format, perfect for working with HyperCard or SuperCard.
  49. -----------------------------------------------------------
  50. Stephen Cooper                            +46-(0)18-18 10 73 (voice)
  51. Computing Science Dept                 +46-(0)18-52 12 70 (fax) 
  52. Uppsala University, Sweden          stephen@csd.uu.se
  53.  
  54.  
  55. #### BINHEX     application-menu-addition-as.hqx   ****
  56.  
  57. Date: Mon, 11 Oct 93 15:33 +1300
  58. From: "Lawrence D'Oliveiro, Waikato University, Hamilton, NZ"
  59. Subject: info-mac/UserInterface/appmenu-additions-as.hqx
  60.  
  61. Hi.
  62.  
  63. Enclosed is a small update to my Application Menu scripting addition for
  64. AppleScript. The code is the same as before, but I have changed some resource
  65. attributes to try to avoid occasional crashes that could occur with the
  66. previous version.
  67.  
  68. Please replace your current copy of the archive with this version.
  69.  
  70. Lawrence D'Oliveiro
  71. Computer Services Dept
  72. University of Waikato
  73. Hamilton
  74. New Zealand
  75. --------------------------------------------------------------------------------
  76.  
  77. #### BINHEX     arashi-11-c.hqx   ****
  78.  
  79. Date: Thu, 22 Jul 1993 23:07:20 GMT 
  80. From: Juri Munkki <jmunkki@vipunen.hut.fi>
  81.  
  82. Think C 5.04 source for Arashi 1.1, a vector graphics game that
  83. requires 256 colors or shades of gray.
  84.  
  85. Juri Munkki
  86. jmunkki@hut.fi
  87.  
  88.  
  89. #### BINHEX     arashi-storm-c.hqx   ****
  90.  
  91. Date: Tue, 1 Dec 1992 11:22:29 GMT 
  92. From: Juri Munkki <jmunkki@vipunen.hut.fi>
  93.  
  94. This file contains the complete source code to the Project Arashi/STORM
  95. game. You need Think C 5.0 or later to use it.
  96.  
  97. This is the same version of the source that is at ics.uci.edu.
  98.  
  99. If you want to write an arcade game for the Macintosh, looking at this
  100. program should be quite useful.
  101.  
  102.  
  103.     Juri Munkki
  104.     jmunkki@hut.fi
  105.  
  106.  
  107. #### BINHEX     ars-magna-II.hqx   ****
  108.  
  109. Date: Fri, 24 Sep 1993 11:47:34 -0800
  110. From: mxmora@unix.sri.com (Matthew Xavier Mora)
  111. Subject: Ars Magna II
  112.  
  113.  
  114.  
  115. --========================_7523546==_
  116. Content-Type: text/plain; charset="us-ascii"
  117.  
  118. Enclosed is a new version of Ars Magna called Ars Magna II. I recomplied
  119. Mike Morton's ars.c code to use think's console library. This makes it a
  120. little more compatible but its still just a C program with command line
  121. interface. 
  122.  
  123. I gave it a new signature and icon to keep it separate for the other version.
  124.  
  125. I did this because someone here needed to use ars magna and the old version
  126. would trash his screen. Hopefully some one will give it a good interface
  127. and make it a real mac program. I just don't have the time.
  128.  
  129.  
  130. Matt
  131.  
  132.  
  133.  
  134. --========================_7523546==_
  135. Content-Type: application/mac-binhex40; name="Ars_Magna_II.sea"
  136.  
  137.  
  138. #### BINHEX     ars-magna-c.hqx   ****
  139.  
  140. Date: Thu, 4 Mar 1993 07:42:56 -0500 
  141. From: Monty Solomon <monty@proponent.com>
  142. Subject: Ars Magna source 
  143.  
  144. Enclosed is the source code for Mike Morton's Ars Magna program.
  145.  
  146. Monty
  147. ---
  148. # Monty Solomon / PO Box 2486 / Framingham, MA  01701-0405
  149.  
  150.  
  151.  
  152. #### BINHEX     artabrot-11-c.hqx   ****
  153.  
  154. From: warnergt@aloft.att.com
  155. Date: Tue, 23 Nov 93 21:08:23 EST
  156.  
  157. ARTAbrot - Apple Real-Time Architecture Mandelbrot Program
  158. Version 1.1
  159. by George Warner
  160. 11/22/93
  161. warnergt@aloft.att.com
  162.  
  163. REQUIREMENTS:
  164. 68020 or greater
  165. ARTA equipped Macintosh (Quadra 840av, Centris 660av, or Mac with ARTA 
  166. plug-in board.
  167.  
  168. 1. WHAT IT IS: ARTAbrot is a Mandelbrot program that it uses the AT&T 
  169. DSP3210 in ARTA to perform the intensive Mandelbrot calculations.
  170.  
  171. 2.  SOURCE CODE TOO!  Complete source code is provided.  For those who 
  172. would like some sample ARTA source code (which is scarce at the time of 
  173. this release).  The DSP3210 source code is in file mbrot.s.  All of the host 
  174. DSP function calls are in brotcode.c.  For those of you considering DSP 
  175. programming, take a look at the mbrot.s DSP source code.  This is DSP3210 
  176. assembly code, but it is very much like C code -- one of the very nice 
  177. features of the DSP3210.
  178.  
  179. Release 1.1    11/22/93    Added support for larger windows, resizable windows, 
  180. and background processing.
  181. Release 1.0    08/23/93    First version.
  182.  
  183.  
  184. #### BINHEX     async-sound-sample-pas.hqx   ****
  185.  
  186. Date: Sat, 27 Mar 1993 14:30:39 -0800 
  187. From: westrom@unixg.ubc.ca
  188. Subject: Pascal source code: async sound production 
  189.  
  190. I was trying to get Think Pascal 4.0.2 to play anynchronous sounds (sounds 
  191. that play while other things are happening). It turns out that you have to 
  192. remove the [D] Debug compile option or else the machine crashes.
  193.  
  194. On the road to discovering this, I made a 'minimal' anynchronous sound
  195. playing 
  196. program. A sample sound playing program is provided by Jim Reekes in the
  197. DTS 
  198. folder of apple.com, but it is very elaborate and complex. What I offer
  199. here 
  200. is a minimum piece of source code that a beginner could look at to see the 
  201. essential elements of async sound production, done by-the-book (vol VI of 
  202. Inside Apple, in this case).
  203. --------
  204. Marv Westrom
  205. Faculty of Education, UBC
  206. Vancouver, B.C. Canada V6T 1Z4
  207.  
  208.  
  209. #### TEXT       atp-sample-code-c.txt   ****
  210.  
  211. From: Stuart Cheshire <cheshire@cs.stanford.edu>
  212. Subject: Re: Looking for some sample appletalk ATP code... 
  213. Date: Wed, 2 Sep 92 18:11:08 GMT 
  214.  
  215. In article <1992Sep1.033635.28604@sunb10.cs.uiuc.edu> Alex Bratton,
  216. bratton@sparc3.cs.uiuc.edu writes:
  217. >If you have some sample code (ATP) that opens, registers, and dumps some
  218. >data, I'd really appreciate seeing it.  This has been bugging me for a
  219. while
  220. >and I think I need to look at some working code to see what I'm missing.
  221.  
  222. Here is some more sample code, which opens and registers an ATP socket.
  223. It is from the Macintosh User Authenticator mentioned in a previous post
  224. be me.
  225.  
  226. The code is written for Think C 5.
  227.  
  228. #include <Traps.h>
  229. #include <GestaltEqu.h>
  230. #include <Folders.h>
  231.  
  232. #### BINHEX     auto-bin-c.hqx   ****
  233.  
  234. From: mxmora@unix.sri.com (Matthew Xavier Mora)
  235. Subject: AutoBin (a drag and drop Binhexer with source)
  236. Date: Thu, 9 Dec 1993 13:21:47 -0800
  237.  
  238.  
  239.  
  240. --========================_6876772==_
  241. Content-Type: text/plain; charset="us-ascii"
  242.  
  243. Enclosed is AutoBin. Autobin is a program based on dropshell that
  244. will binhex any file dropped on top of it. Since I didn't write very
  245. much of the actual code, included the source so other can benefit too.
  246. (and hopefully modify it and make it better.)
  247.  
  248.  
  249. Xavier
  250.  
  251.  
  252.  
  253.  
  254. --========================_6876772==_
  255. Content-Type: application/mac-binhex40; name="AutoBin_w=src.sea"
  256. Content-Disposition: attachment; filename="AutoBin_w=src.sea"
  257.  
  258.  
  259. #### BINHEX     bob-15-c.hqx   ****
  260.  
  261. Date: Sat, 2 Oct 93 23:08:11 -0700
  262. From: tsyang@dec-9.CE.Berkeley.EDU (Tzong-Shuoh Yang)
  263. Subject: Bob15.hqx - Bob Programming Language (Think C source)
  264.  
  265.  
  266. This is the Tinnk C 6.01 version of  Bob 1.5.   For details, 
  267. please see article
  268.    
  269.   Betz, David.
  270.    "Your own tiny object-oriented language: C++? Smalltalk? 
  271.    What about Bob? (an interpreter formed from C++ and Lisp) 
  272.    (tutorial)",  Dr. Dobbs Journal v16, n9 (Sept, 1991):26 
  273.    (8 pages).
  274.  
  275. Bob was written by:
  276.  
  277.     David Betz
  278.     P.O. Box 144
  279.     Peterborough, NH 03458
  280.     (603) 924-4145
  281.  
  282. Bob is available free of charge for non-commercial use.  If 
  283. you're interested in using Bob commercially, please contact him 
  284. at the above address.
  285.  
  286. The original source codes are written in Microsoft C and can be 
  287. obtained by anonymous ftp from ftp.mv.com. 
  288.  
  289. Have fun.
  290.  
  291. T. S. Yang  (tsyang@ce.berkeley.edu)
  292. ================================================================
  293.  
  294. #### BINHEX     c-interp-c.hqx   ****
  295.  
  296. Date: Wed, 2 Jun 1993 10:15:23 -0600 
  297. From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton)
  298. Subject: C Interpreter Source Code 
  299.  
  300. C_Interp.sit contains the complete Think C source code for an interpreter
  301. of a  subset of C. It is implemented as a subroutine call that can be
  302. embedded in any application, making it extremely easy to add scripting to
  303. an existing application. Callbacks from the interpreted C code to the
  304. calling application can be made. The source should compile without changes
  305. on any Unix host as well. See the enclosed documentation for more details.
  306.  
  307. Note: I am not the original author of this code, but I have modified it to
  308. create a stand-alone library function. See docs for credits.
  309. ---
  310.  
  311.  
  312. #### BINHEX     calc-1247-c.hqx   ****
  313.  
  314. Date: Thu, 14 Oct 93 00:06:24 -0700
  315. From: tsyang@dec-7.CE.Berkeley.EDU (Tzong-Shuoh Yang)
  316. Subject: calc-1.24.7.hqx a C-like calculator (Think C src)
  317.  
  318. This is Think C 6.01 port of David Bell's Calc 1.24.7 program.  
  319. Calc is arbitrary precision arithmetic system that uses a C-like
  320. language.  Calc is useful as a calculator, an algorithm prototyped and
  321. as a mathematical research tool.
  322.  
  323. The calc language is a C-like language.  The language includes commands
  324. such as variable declarations, expressions, tests, labels, loops, file
  325. operations, function calls.  These commands are very similar to their
  326. counterparts in C.
  327.  
  328. A rich set of builtin functions is provided. Fundamental builtin data types 
  329. include integers, real numbers, rational numbers, complex numbers and strings.
  330.  
  331. By use of an object, one may define an arbitrarily complex data types.
  332. One may define how such objects behave a wide range of operations such
  333. as addition, subtraction, multiplication, division, negation, squaring,
  334. modulus, rounding, exponentiation, equality, comparison, printing and so
  335. on.
  336.  
  337.        Copyright (c) 1992 David I. Bell
  338.  
  339. Permission is granted to use, distribute, or modify this source, provided 
  340. that this copyright notice remains intact.
  341.  
  342. Send calc comments, suggestions, bug fixes, enhancements and interesting
  343. calc scripts that you would like you see included in future distribu-
  344. tions to:
  345.  
  346.         dbell@pdact.pd.necisa.oz.au  and  chongo@toad.com
  347.  
  348. Enjoy!
  349. ====================== hqx file starts here =====================
  350.  
  351. #### BINHEX     canimcursor-10b4-c.hqx   ****
  352.  
  353. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  354. Subject: /source/c/canimcursor-10b4.hqx 
  355. Date: Mon, 14 Sep 92 13:56:45 EDT 
  356.  
  357. This Compact Pro archive contains the source code for CAnimCursor,
  358. a public domain Think C 5 class that provides easy, flexible handling
  359. of animated cursors.  The Think Class Library is not required.  This
  360. is the fourth beta.  (It's quite stable and hasn't crashed in months,
  361. but I'm still calling it beta because of a minor anomaly which I
  362. haven't resolved yet.)
  363.  
  364. CAnimCursor uses an 'acur' resource to determine which cursors to
  365. display;  the animation speed and a few other variables are changed
  366. by method calls.  Both color and B&W are supported.  The interface
  367. can be as simple as initializing the object with the resource ID of
  368. your 'acur', and calling startAnimating() and stopAnimating() at the
  369. appropriate times.
  370.  
  371. CAnimCursor's best feature is that it is very good about doing the
  372. Right Thing (tm).  For example, if your 'acur' points to color
  373. cursors and the Mac is B&W, it will pull the B&W bitmaps out of the
  374. 'crsr's.  If you call startAnimating() twice, the second call will
  375. have no effect.  And so on.
  376.  
  377. CAnimCursor will not call SetCCursor at interrupt time, since that
  378. trap relies on the heap being good, and will fail if the interrupt
  379. occurs during a memory manager reorganization.  This does not happen
  380. often, but one crash is one too many.
  381.  
  382. Also included are CQixableCursor, a subclass which optionally draws a
  383. little 'Qix' over your cursors;  subclasses of three TCL core classes
  384. which will prevent the cursor from being reset each time through the
  385. event loop;  a short sample subclass;  and four sample cursors,
  386. including a smooth beachball and a color spinning earth.  (I stole
  387. the earth from Stefan Bilaniuk's free extension "Earth," also at
  388. sumex-aim.  I feel no guilt because I guess he stole it from someone
  389. else ;-), and because I colorized all 26 frames by hand, phew!)
  390.  
  391. Extensive (indeed, ponderous) comments explain proper usage, and there
  392. are even one or two comments in the code itself.  Plus, it comes with
  393. a toll-free technical support number, which I figure is a pretty good
  394. deal for something in the public domain, eh?
  395.  
  396.  
  397.  
  398. #### BINHEX     change-creator-type-15-c.hqx   ****
  399.  
  400. Date: Sun, 26 Sep 93 13:11:14 CDT 
  401. From: jemian@tmnxt1.iit.edu (Pete Jemian)
  402. Subject: [*] ctc v1.5 (ChangeTypeCreator + change EOLs, too!) 
  403.  
  404.  
  405. ChangeTypeCreator.c 
  406.     Change the file type and creator of any file dropped onto 
  407.     this program.  Prompts for the file type and creator, and 
  408.     changes all files dropped at the same time to the same type 
  409.     and creator.
  410.  
  411. Written by Brian Bechtel, based on code by Juri Munkki
  412. Feel free to use the code in your programs.
  413.  
  414. Modified by Pete R. Jemian, Late-Nite(tm) Software
  415. Option was added to convert TEXT files to the 
  416. chosen system of EOL (end-of-line) characters.  Note that EOLs
  417. on DOS files  are <CR><LF>  (VAX also uses this EOL format)
  418. on Mac files  are <CR>
  419. on UNIX files are <LF>
  420.  
  421. If you aren't bothered by this, that's just great.  If you 
  422. are, this little hack will surely help.  Very useful for 
  423. moving TEXT files between DOS, Mac, and UNIX machines 
  424. by diskNet (copy file onto disk, remove disk, sneaker it 
  425. to other machine, ...).
  426.  
  427. BTW: Set the application's size to that of the largest file 
  428. that you expect to convert EOLs.  The EOLconvert code 
  429. reads the entire file into memory at one time, then does 
  430. the conversion as the file is re-written.
  431.  
  432. WARNING:
  433. If you don't know what you are doing, things *could* get 
  434. pretty fouled up.  They might not.  UNDO is not supported.  
  435. See the source code to determine *exactly* what is done.  
  436.  
  437. The problem that *could* occur is that you mistakenly select 
  438. a non-TEXT file along with other TEXT files and convert them 
  439. all to type TEXT *and* convert the EOL characters to the 
  440. selection of your choice.  That's the danger.  Don't do it.  
  441. You are unprotected against goofball errors like this.
  442. -------------------><cut here><-----------------------------
  443.  
  444. #### BINHEX     chassis-431-c.hqx   ****
  445.  
  446. Date: Mon, 9 Nov 92 13:57:44 -0500 
  447. From: cah0@gte.com (Charles Hoffman)
  448. Subject: Chassis 4.3.1 retransmit 01 of 10 
  449.  
  450.  
  451. The original file is a Mac folder, which was compressed
  452. with Stuffit, then reformatted with BinHex.  The result
  453. was broken into 10 pieces of about 60K with the unix
  454. "split" command.
  455.  
  456. CHASSIS
  457. Chassis is a sample application which you can use as the
  458. basis for your own simple applications on a Macintosh.  It
  459. is written in THINK C (all source provided).  It is not object
  460. oriented, but is highly structured.  A flowchart is provided
  461. in MacDraw format.  Chassis is helpful for small applications
  462. such as calculations, simple text processing, or adding a Mac
  463. interface to an existing program.  It also is a good source
  464. of sample code which actually runs.
  465.  
  466. Release 4.3.1
  467. Contains a small fix to enable running on Mac Plus, major
  468. changes to print routines, small fixes for cursor behavior,
  469. and some changes to scrolling in Help routines.
  470.  
  471.  
  472. #### BINHEX     chat-11-pas.hqx   ****
  473.  
  474. Date: Sat, 12 Dec 1992 12:00:45 +0800 
  475. From: Peter N Lewis <peter@ncrpda.curtin.edu.au>
  476. Subject: source/pascal/chat-110.hqx 
  477.  
  478.  
  479. This is the pascal source for Chat 1.1.0, a background only application
  480. that lets Macs with MacTCP 1.1 serve as a very primitive IRC.  
  481.  
  482. The source is very simple, only around 500 lines, and could be used
  483. as example code if you wanted to write your own MacTCP server.
  484.  
  485. Chat is free and should run under System 6 or 7, and requires 
  486. MacTCP 1.1 or later.
  487.  
  488. Hope its useful,
  489.    Peter.
  490.  
  491. Chat 1.1.0 Copyright 1992, Peter N Lewis <peter@cujo.curtin.edu.au>
  492.  
  493.  
  494. #### BINHEX     cheese-toast-10-c.hqx   ****
  495.  
  496. From: jbum@netcom.com (Jim Bumgardner)
  497. Subject: CheeseToastSource10.sit.hqx
  498. Date: Wed, 18 Aug 93 8:22:55 PDT
  499.  
  500. Cheese Toast 1.0 by Jim Bumgardner jbum@netcom.com
  501.  
  502. Cheese Toast is an asteroids-inspired game that is similar to
  503. Maelstrom except that your ship is a teapot...
  504.  
  505. This is the Think-C source code.  You will also need the files
  506. in CheeseToast10.sit in order to run the game under Think C.
  507.  
  508. CheeseToast requires a color Mac with a 13" monitor and 32-bit
  509. quickdraw.
  510.  
  511.  
  512.  
  513. #### BINHEX     clut-fader-c.hqx   ****
  514.  
  515. From: kenlong@netcom.com (Ken Long)
  516. Subject: _clut_fade_demo.sit
  517. Date: Mon, 20 Dec 1993 18:20:17 -0800 (PST)
  518.  
  519. Dear MacGifts People:
  520.  
  521. Here is a PD demo of a 'clut' fader in Think C 5.  Put together by Jonas 
  522. Englund (busjohnny@aol.com) from two fade routines 
  523. (FadeToBlack/FadeToNormal) which I sent him.
  524.  
  525. On launch, it puts up a dialog with two buttons in it: "Fade" and "Done."
  526.  
  527. If you click "Fade" it fades to black at a 128 speed, waits 120 ticks and 
  528. fades back in at 200 speed.  Hit "Done" and it exits to shell.
  529.  
  530. The fade rate can be set from 1 to ?????? - however many ticks you want 
  531. to wait.  Set in and out at 1 and it flashes the screen.
  532.  
  533. -Ken-
  534. ----------------------------------------------------------------------------
  535.  
  536.  
  537. #### BINHEX     control-panel-tester-70-c.hqx   ****
  538.  
  539. Date: 04 Mar 1993 13:07:09 -0500 (CDT) 
  540. From: Evan Olcott <EOLCOTT@vx.cis.umn.edu>
  541. Subject: Cdev Tester 7.0 
  542.  
  543. /***************
  544. *
  545. *  System 7.0 Control Panel tester
  546. *
  547. *  )1993 Triplo Software
  548. *
  549. ****************/
  550.  
  551. The Control Panel tester is a source code file that you can use to test
  552. your cdev code resource files under the THINK C 5.0 environment with little
  553. difference from the operating system.  
  554.  
  555. Any comments, questions, bugs, etc. please report them to:
  556. Triplo Software
  557. c/o EOLCOTT@vx.cis.umn.edu
  558.  
  559. If you think I expect money from this, you're crazy. It's freeware, I guess.
  560. Have fun. Just credit me where you think it's due.
  561.  
  562. ----------splice 'n' dice here------------
  563.  
  564. #### BINHEX     controls-gh.hqx   ****
  565.  
  566. Date: Fri, 22 Oct 93 16:55 CST 
  567. From: HOWES@chem.wisc.edu
  568. Subject: [*] Submission of Controls GH 
  569.  
  570. Greetings,
  571.  Enclosed you will find a pair of control definitions ('CDEF's) 
  572.  I wrote for a small application I'm writing. I'm making them and 
  573. their source code available in the hopes that other programmers
  574. might find them useful.
  575.  
  576. Slide Control GH: 
  577.  A basic slider type control with a thumb and page up and page
  578. down regions. For use in setting some continually varying
  579. value.
  580.  
  581. Flag Control GH:
  582.  A toggle switch functionally identical to the triangle found
  583. in Finder list views. For use in indicating expand/contraction
  584. of a view or window.
  585.  
  586.  These are to be considered free for use by anyone and feel
  587. free to modify them to fit your own taste in your own product;
  588. that's why I included the source code.
  589.  
  590. Bug reports/fixes to:
  591.  Glenn R. Howes
  592.  1101 University Ave.
  593.  Madison, WI 53706
  594.  howes@bert.chem.wisc.edu
  595.  
  596. suggested name: controls_gh_cpt.hqx
  597.  
  598. #### BINHEX     crooked-mouse-10-c.hqx   ****
  599.  
  600. From: f8dy@netaxs.netaxs.com (Mark Pilgrim)
  601. Subject: Crooked Mouse 1.0 (source code) 
  602. Date: Sun, 14 Nov 1993 03:11:39 -0500 (EST) 
  603.  
  604. Crooked Mouse is a fun little INIT which will cause your mouse to move
  605. at an angle 45 degrees counterclockwise from the angle you moved it.
  606. This INIT is free and is distributed under the GNU General Public License;
  607. this archive contains complete THINK C 6.0.1 source code and project files
  608. for the INIT.  If you do not have FTP access, e-mail the author for a copy of
  609. the INIT, the source code, or a list of other programs by the same author.
  610. The address is f8dy@netaxs.com.
  611.  
  612. This code demonstrates the basics of writing and installing a VBL, and the
  613. manipulation of undocumented low-memory globals.  This code should work under
  614. any system, with any monitor, on all Macintoshes.  Please report any
  615. bugs/comments/suggestions to f8dy@netaxs.com.
  616.  
  617. Crooked Mouse 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  618.  
  619.  
  620. #### BINHEX     darth-vader-10-c.hqx   ****
  621.  
  622. From: f8dy@netaxs.netaxs.com (Mark Pilgrim)
  623. Subject: Darth Fader 1.0 (source code)
  624. Date: Sun, 21 Nov 1993 04:24:08 -0500 (EST)
  625.  
  626. Darth Fader will cause your Macintosh to quickly fade all attached screens to
  627. black and back when it beeps.  This INIT is free and is distributed under the
  628. GNU General Public License; this archive contains complete THINK C 6.0.1
  629. source code and project files for the INIT.  If you do not have FTP access,
  630. e-mail the author for a copy of the INIT, the source code, or a list of other
  631. programs by the same author.  The address is f8dy@netaxs.com.
  632.  
  633. This code demonstrates the basics of INIT initialization and loading, 
  634. trap trapping, and advanced gamma work. This code will only work on
  635. monitors with gamma -- the Mac II line, and any color Mac with a non-built-in
  636. monitor.  (It has not been tested on a Color Classic; if anyone has one and
  637. feels like testing, please let me know if it works.)  Please report any
  638. bugs/comments/suggestions to f8dy@netaxs.com.
  639.  
  640. Darth Fader 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  641.  
  642.  
  643. #### BINHEX     dcl-ansi-c.hqx   ****
  644.  
  645. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  646. Subject: dcl-ANSI (all) 
  647. Date: Thu, 22 Apr 93 0:45:35 EDT 
  648.  
  649. C's method of declaring variables and functions is one of the most confusing
  650. parts of the language.  Even old pros will double- and triple-check their
  651. arrays of pointers.  And the pathological cases are truly bizarre:
  652. "int(Int(int(Int)))" declares a function that accepts and returns an int, but
  653. "int(Int(int(int)))" declares a function that accepts another function,
  654. and _that_ function accepts and returns an int.  Weird stuff.
  655.  
  656. "dcl-ANSI" lets you type in a declaration, hit a few keys, and see what it
  657. means, in plain English.  Tell it "int (*x[])()" and it tells you x is "type
  658. array[] of pointer to function with undefined parameters returning type int."
  659. It's based on the "dcl" program in section 5.12 of K&R, but, as the name
  660. implies, it fully understands ANSI.  (Well, OK, there are a few limitations.
  661. See the readme for details.)  And it's public domain.
  662.  
  663. There are two editions of this utility.  It was first created as a BBEdit
  664. extension, because (1) I like BBEdit and (2) BBEdit provides a particularly
  665. nice environment for hacks like this to live in.  If you keep BBEdit open
  666. while programming, you may prefer this version.  Otherwise, you'll probably
  667. want to use the second edition, the FKEY, because it's simpler:  just
  668. select your declaration, hit cmd-C and cmd-shift-9 [*], and the English
  669. explanation is in the clipboard, waiting for you to paste it somewhere.
  670.  
  671. This file contains both editions and their complete Think C 5 source code.
  672.  
  673. Suggested archive destination:  .../source/c/dcl-ansi.hqx
  674. --
  675.  Jamie McCarthy     Internet: k044477@kzoo.edu    AppleLink: j.mccarthy
  676.  
  677.  
  678. #### BINHEX     devils-cubes-101-c.hqx   ****
  679.  
  680. From: f8dy@netaxs.com (Mark Pilgrim)
  681. Subject: Devil's Cubes 1.0.1 (source code)
  682. Date: Tue, 14 Dec 1993 18:50:12 -0500 (EST)
  683.  
  684. The Devil's Cubes are a set of four cubes, each painted with four colors
  685. with some colors repeated.  All four cubes are different.  The object of
  686. the game is to rotate the four cubes until the top of each Devil's Cube
  687. is a different color than the top of the other three cubes, and likewise
  688. for the bottom, front, and back of each Devil's Cube.  Sound simple?  Try
  689. it for a few hours.
  690.  
  691. Devil's Cubes 1.0.1 fixes some technical bugs and makes some changes to the
  692. icon suite; you may need to rebuild your desktop if you already have version
  693. 1.0.  This game is distributed under the GNU General Public License; this
  694. archive contains complete THINK C source code for the Devil's Cubes
  695. application, as well as complete source code for an external application
  696. used to set up the game's self-integrity checker.
  697.  
  698. This archive contains both THINK C 5 and THINK C 6 project files.  Use
  699. whichever one you wish and throw away the other.
  700.  
  701. This code handles, among other things, events, menus, apple events, a prefs
  702. file, Gestalt environment checking, asynchronous sounds, hierarchical menus,
  703. dialogs, windows, off-screen bitmaps, file management, standard file dialogs,
  704. and the soon-to-be-famous "cough to continue" modal dialog filter proc.  None
  705. of this is very well commented, but feel free to direct any questions to
  706. f8dy@netaxs.com.
  707.  
  708. Devil's Cubes 1.0.1 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  709.  
  710.  
  711. #### BINHEX     dink-class-c.hqx   ****
  712.  
  713. Date: Tue, 2 Mar 93 08:08:11 -0800 
  714. From: blob@apple.com (Brian Bechtel)
  715. Subject: DinkClass 
  716.  
  717. [Downloaded from AppleLink--I'm not the author, Mark Gross is.  Contact him
  718. via zsass.markg@applelink.apple.com.]
  719.  
  720. DinkClass is a small Think C5.0 (and MPW C++) application framework for
  721. system 7 applications.  
  722.  
  723. DinkClass is now offered as shareware.  
  724. If you use ANY of it in your own software, then you must pay a one time fee
  725. to Applied Technical Software (ATS) of $45.  In return you will get
  726. unlimited rights to distribute any COMPILED programs created using part of
  727. DinkClass source code.  However; the distribution of any source code
  728. derived from parts of the DinkClass software MUST BE DONE WITH APPLIED
  729. TECHNICAL SOFTWARE'S CONSENT!!!! (So, give me a call.)   You also get, for
  730. the $45, two free maintenance updates of the basic class library, of the
  731. basic demo applications, of the documentation, any extra demo applications
  732. I may have created (DComDemo a CTB demo, for instance), the MPW C++
  733. supporting files (.make, .r, .c files renamed to .cp, etc.), and telephone
  734. and EMail support.  Maintenance updates go out in December and July.
  735.  
  736. The DinkClass ShareWare distribution package includes:
  737. o Think C 5.0 projects with well commented source code for 2 applications
  738. and the Template project.
  739. o Think C 5.0 source files for the base class library.
  740. o Off-line documentation of the key features implemented in the class
  741. library, all conforming to the Feature Oriented Documentation standard
  742. developed. Features documented in this way include:  
  743. All the applications, Scrolling Windows, Event parsing, File and I/O
  744. handling, Clip board support, Menu Handling, and more.
  745. o A readme file.
  746. o A directory "Listings" file of what constitutes this ShareWare distribution.
  747. o A shameless flier soliciting contract software development work for ATS.
  748. o The executable form of the CTB demo application.
  749. o This "Posting note"
  750.  
  751. Feel free to redistribute this shareware package of DinkClass as you wish, but
  752. ALL OF THESE FILES MUST STAY TOGETHER UNALTERED IN ANY RE-TRANSMISSION OR
  753. DISTRIBUTION OF THIS SHAREWARE PACKAGE!!!!!
  754.  
  755. p.s. it would be nice if someone could but this package in some of the
  756. INTERNET repositories (like SUMEX)
  757.  
  758. Mark Gross 12/31/92
  759.  
  760. Applied Technical Software
  761. 19548 W. Cambridge Rd.  
  762. Mundelein, IL  60060-1005       
  763. Telephone:      708.949.0925
  764.  
  765. Software engineering services in OOD,  OOP, C++, C, MacApp, TCL, MPW,
  766. ThinkC.  Initial project development intended for transfer to client with
  767. continued technical support.  Turnkey, prototype, and consulting projects
  768. accepted.
  769.  
  770. I know, its another shameless plug.
  771.  
  772. p.s. If you would like to use DinkClass in an educational setting contact
  773. me for FREE transient licensing arrangements.
  774.  
  775. --Brian Bechtel    blob@apple.com    "My opinion, not Apple's"
  776.  
  777.  
  778. #### TEXT       dir-scanning-sample-c.txt   ****
  779.  
  780. Date: Wed, 2 Sep 92 15:19:54 PDT
  781. From: macmod@SUMEX-AIM.Stanford.EDU (Info-Mac Moderator)
  782.  
  783. orrow.stanford.edu!stanford.edu!ames!haven.umd.edu!darwin.sura.net!wup        ost!micro-heart-of-gold.mit.edu!bu.edu!Shiva.COM!world!aep 
  784. From: aep@world.std.com (Andrew E Page) 
  785. Newsgroups: comp.sys.mac.programmer 
  786. Subject: Re: Directory Scan Revisited dirscan.c (C Code) 
  787. Message-Id: <Btyt08.JLL@world.std.com> 
  788. Date: 2 Sep 92 19:04:54 GMT 
  789. References: <BtwK89.oI@world.std.com> 
  790. Organization: The World Public Access UNIX, Brookline, MA 
  791. Lines: 625 
  792. Apparently-To: info-mac 
  793. Resent-To: backmod
  794. Resent-Date: Wed, 2 Sep 1992 15:19:53 PDT
  795. Resent-From: Info-Mac Moderator <macmod@sumex-aim.Stanford.EDU>
  796.  
  797. Here is the directory scanning code.  Written under MPW 3.2.
  798.  
  799. --------CUT HERE------------------------------------------------CUT HERE------
  800.  
  801. #### BINHEX     directory-c.hqx   ****
  802.  
  803. From: kenlong@netcom.com (Ken Long)
  804. Subject: directory_src.sit
  805. Date: Tue, 21 Dec 1993 08:54:22 -0800 (PST)
  806.  
  807. Dear MacGifters:
  808.  
  809. A netcom server error fouled up my first attempt to send this.
  810.  
  811. -----------------------------------------------------------------------
  812. Directory is o PD (for noncommercial use) Think C 5.0.4 project which 
  813. puts up a window, shows progress data of scans of mounted volumes in a 
  814. window for each, then displays full path trees for all files on the volumes.
  815.  
  816. Teaches about getting full paths, scanning volumes, scrolling text, 
  817. writing data to a window, and much more.
  818.  
  819. -----------------------------------------------------------------------
  820.  
  821.  
  822. #### BINHEX     dirent-h.hqx   ****
  823.  
  824. Date: Sun, 4 Jul 93 14:52:04 EDT 
  825. From: ugtalbot@mcs.drexel.edu (George T. "14K F/D" Talbot)
  826. Subject: dirent.sit.hqx 
  827.  
  828.  
  829. This is source code for a Mac implementation of the UNIX "dirent.h" library.
  830.  
  831.  
  832. #### BINHEX     dragonsmith-11-c.hqx   ****
  833.  
  834. Date: Tue, 27 Oct 92 17:44:22 EST 
  835. From: Paul.Hoffman@um.cc.umich.edu
  836. Subject: Dragonsmith 1.1, part 01 
  837.  
  838. Dragonsmith 1.1
  839.  
  840. Drag-and-drop application kit for THINK C 5.0.
  841.  
  842. Dragonsmith lets THINK C programmers easily create drag-and-drop
  843. applications (or "dragons") for use with System 7.  It features an
  844. object-oriented class "Dragon" which may be subclassed to provide
  845. any batch-type action desired.  All source code is included.
  846.  
  847. Notable changes and additions in version 1.1 --
  848.  + Versatile disk- and folder-opening capability
  849.  + Background processing
  850.  + Extensive documentation (MSWord and text formats)
  851.  + Resource-based Preferences class
  852.  + Improved file filtering
  853.  + Easier interface for subclasses
  854.  + Improved Apple event debugging
  855.  + Template files for quick Dragon subclassing
  856.  + Improved menu support
  857.  
  858. Three sample dragons with full source code are included.
  859.  
  860. Dragonsmith is freeware.  Send comments to:
  861.  
  862.   Paul Hoffman
  863.   840 S. First #1
  864.   Ann Arbor MI 48103
  865.   U.S.A.
  866.  
  867.   Internet: paul.hoffman@um.cc.umich.edu
  868.   AFS: /afs/umich.edu/user/n/k/nkuitse
  869.  
  870. "Dragons do not enter into this story"
  871.  
  872. --------------------------- CUT HERE ---------------------------
  873.  
  874. #### BINHEX     driver-22-c.hqx   ****
  875.  
  876. From: Pete Resnick <resnick@cogsci.uiuc.edu>
  877. Subject: Driver 2.2
  878. Date: Sun, 24 Oct 93 16:20:52 CDT
  879.  
  880. Attached is version 2.2 of Pete Resnick's device driver code. This
  881. code is especially useful for device drivers written using THINK C's
  882. device driver facility, though it is useful for other development
  883. environments as well since it describes in detail how to install
  884. device drivers correctly into the Device Manager unit table.
  885.  
  886. Please feel free to use it and to distribute it in it's original form.
  887. All that I ask is that you credit me if you use it in a released piece
  888. of code.
  889.  
  890. pr
  891. --
  892. Pete Resnick        (...so what is a mojo, and why would one be rising?)
  893. Graduate assistant - Philosophy Department, Gregory Hall, UIUC
  894. System manager - Cognitive Science Group, Beckman Institute, UIUC
  895. Internet: resnick@cogsci.uiuc.edu
  896.  
  897.  
  898. #### BINHEX     dunjin-44.hqx   ****
  899.  
  900. From "Magnus Olsson <magnus@thep.lu.se>" Tue Aug 24 18:03:37 1993
  901. From: Magnus Olsson <magnus@thep.lu.se>
  902. Date: Tue, 24 Aug 93 15:49:08 +0200
  903. Subject: Dunjin_4.4.cpt.hqx part 1/6
  904.  
  905. Dunjin_4.4.cpt.hqx part 1 of 6
  906. ===== cut here =====
  907. Submission for info-mac: Dunjin 4.4, a text adventure game.
  908. (BinHexed Compact Pro archive)
  909.  
  910. Dunjin version 4.4 is a shareware text adventure game for Macs, in the
  911. Infocom tradition. Although this is a traditional text game, I have
  912. tried to make use of the Mac's user interface. It is possible to
  913. cut-and-paste text from the text window, there is a "movement compass"
  914. that lets you move about by clicking on directions, and some of the
  915. most common commands can be performed just by clicking on buttons on a
  916. "command palette". Of course, it's still a text adventure - no pretty
  917. pictures, I'm afraid... 
  918.  
  919. Enjoy!
  920.  
  921. Magnus Olsson --  magnus@thep.lu.se, mol@df.lth.se
  922.  
  923. BinHexed file follows below.
  924. ========================= cut here =============================
  925.  
  926. #### BINHEX     eat-au-p.hqx   ****
  927.  
  928. Date: Thu, 2 Dec 1993 16:07:50 +0800
  929. From: Quinn <quinn@cs.uwa.edu.au>
  930. Subject: Movie Import Component Source Code
  931.  
  932.  
  933.  
  934. --========================_17153170==_
  935. Content-Type: text/plain; charset="us-ascii"
  936.  
  937. Greetings
  938.  
  939. EatAU is a QuickTime component that converts Suns audio (.au) files into
  940. QuickTime movies.  It comes with full source code and is a simple example
  941. of how to write a component in Pascal.
  942.  
  943. Share and Enjoy.
  944.  
  945.  
  946.  
  947. --========================_17153170==_
  948. Content-Type: application/mac-binhex40; name="EatAU.cpt"
  949.  
  950.  
  951. #### BINHEX     example-scripting-additions-c.hqx   ****
  952.  
  953. Date: Mon, 4 Oct 1993 12:56:06 -0500
  954. From: jonpugh@netcom.com (Jon Pugh)
  955. Subject: [*] Scripting Addition Samples
  956.  
  957.  
  958.  
  959. --========================_14520392==_
  960. Content-Type: text/plain; charset="us-ascii"
  961.  
  962. Here are eight sample AppleScript Scripting Additions with C source code
  963. done by Donald Olson of Apple Computer and presented in his WWDC talk this
  964. year.  I was asked to make these available on the Internet and now I have. 
  965. ;)
  966.  
  967. These demonstrate a number of useful techniques for presenting information
  968. including the use of records and wildcard handlers in addition to the
  969. minimal boring stuff.
  970.  
  971. For all who care, Donald said it was OK to post them since they are also on
  972. Applelink.
  973.  
  974. Jon
  975.  
  976.  
  977.  
  978. --========================_14520392==_
  979. Content-Type: application/mac-binhex40; name="OSAX_Samples.sit"
  980.  
  981.  
  982. #### BINHEX     file-dropper-11b3-c.hqx   ****
  983.  
  984. From "macmod (Info-Mac Moderator)" Mon Aug 30 06:32:34 1993
  985. From: macmod (Info-Mac Moderator)
  986. Date: Mon, 30 Aug 93 6:32:31 PDT
  987.  
  988. (5.65c/IDA-1.5 for info-mac@sumex-aim.stanford.edu); Sun, 29 Aug 1993 22:35:45
  989. -0700
  990. Date: Sun, 29 Aug 1993 22:35:00 -0700 (PDT)
  991. From: Troy Anderson <tla@crl.com>
  992. Subject: File Dropper 1.1b3
  993. To: info-mac@sumex-aim.stanford.edu
  994. Message-Id: <Pine.3.05.9308292200.A23203-h100000@crl.crl.com>
  995. Mime-Version: 1.0
  996. Content-Type: TEXT/PLAIN; charset=US-ASCII
  997. Content-Transfer-Encoding: QUOTED-PRINTABLE
  998.  
  999. File Dropper 1.1b3
  1000. Written by Troy Anderson
  1001.  
  1002. Copyright (c) 1992-1993, Troy Anderson; All Rights Reserved
  1003.  
  1004. What Is This Thing?
  1005.  
  1006. File Dropper is a THINK C 6.0 library that implements an application that y=
  1007. ou
  1008. can drop files or folders onto to do batch operations on.  It handles the
  1009. getting of the AppleEvents if running under System 7, the main event loop, =
  1010. and
  1011. the menus.  You need only write the code that acts on the individual files.
  1012.  
  1013. New Features in 1.1=A73
  1014.  
  1015. o  Fixed a bug so that when you drop a folder onto your File Dropper
  1016.    application, all the files inside are processed in stead of just the
  1017.    first one.
  1018.  =20
  1019. New with version 1.1b2:
  1020. o  Built "File Dropper =B9" in THINK C 6.0
  1021. o  The cursor is NOT reset to an arrow after each call to SetStatusPercenta=
  1022. ge.
  1023. o  If you return FALSE from the eStartup, eSFInitialize, or eAEInitialize
  1024.    messages, File Dropper  will send you an eQuitting message and quit the
  1025.    application.
  1026. o  If you return FALSE from the eValidate message, File Dropper will skip a=
  1027. ny
  1028.    remaining files in the current batch.
  1029. o  If you return FALSE from an eDispose message, File Dropper will send you=
  1030.  an
  1031.    eQuitting message and quit the application.  Returning TRUE from an eDis=
  1032. pose
  1033.    message will cause File Dropper to continue running.  This behavior does=
  1034.  NOT
  1035.    depend upon which of eSFInitialize or eAEInitialize was sent to you.
  1036. o  If you return TRUE from an eQuitting message, the File Dropper quits.  O=
  1037. n the
  1038.    other hand, if  you return FALSE from an eQuitting message, File Dropper
  1039.    will quit.
  1040. o  If you want the source code to File Dropper, send me money (see the end =
  1041. of
  1042.    this document).
  1043. o  Added an eUserCancelled message for when the user clicks Cancel in the s=
  1044. tatus
  1045.    box.
  1046. o  Added an eIdle message.
  1047. o  Added the ChangeStatusMessage function that lets you change the message =
  1048. in the
  1049.    status dialog on the fly, during your processing of the file.
  1050. o  Changed some things internally, so you can NOT call
  1051.    InstallCustomGetFSSpecFunc, InstallCustomFileFilterFunc, or
  1052.    InstallCustomDialogHookFunc from an eSFInitialize or  eAEInitialize mess=
  1053. age
  1054.    any more, just from eStartup.
  1055. o  Fixed a bug in the ErrorAlert function so that text relating to the erro=
  1056. r as
  1057.    well as the word "Error." show up in the dialog.
  1058. o  Made it simpler to support AboutBox functionality.  You just put text in=
  1059.  STR#
  1060.    resource 129, and it will be displayed in the warp stars.  To enable thi=
  1061. s
  1062.    feature, return TRUE from the  eDoAboutBox message.
  1063.  
  1064.  
  1065. New with version 1.1b1:
  1066. o  You specify if you want the status dialog displayed while you are
  1067. working on the file. Progress bar like Finder 7's that you update by
  1068. specifying how far you are along with a percentage (0 - 100).  You
  1069. specify if you want this, too.
  1070.  
  1071.  
  1072.  
  1073. #### BINHEX     final-chance-10-c.hqx   ****
  1074.  
  1075. From: f8dy@netaxs.com (Mark Pilgrim)
  1076. Subject: Final Chance 1.0 (source code)
  1077. Date: Mon, 13 Dec 1993 05:11:34 -0500 (EST)
  1078.  
  1079. Final Chance is a combination of fluff and utility.  On one hand, it gives
  1080. you a random quote on shutdown, which is pretty useless, really.  On the
  1081. other hand, it gives you a final chance to decide if you really want to shut
  1082. your Macintosh down, or if you want to exit to the Finder.
  1083.  
  1084. This INIT is free and is distributed under the GNU General Public License.
  1085. This archive contains complete THINK C 6.0.1 source code and project files for
  1086. the INIT.  If you do not have FTP access, e-mail the author for a copy of the
  1087. control panel, the source code, or a list of other programs by the same author.
  1088. The address is f8dy@netaxs.com.
  1089.  
  1090. This code demonstrates the basics of INIT installation, shut down procedures,
  1091. and loading dialog resources at INIT time to use later on.
  1092.  
  1093. Final Chance 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  1094.  
  1095.  
  1096. #### BINHEX     finder-progress-bar-10.hqx   ****
  1097.  
  1098. From macmod Tue Aug 31 20:55:36 1993
  1099. Date: Tue, 31 Aug 93 19:56:14 PDT
  1100. From: cklarson@rosarita.engr.ucdavis.edu (Christopher Klaus Larson)
  1101. Subject: finder-progress-bar-10-c.cpt.hqx
  1102.  
  1103.  
  1104. FinderProgressBar 1.0 by Chris Larson
  1105.  
  1106. This is the THINK C source for a CDEF which mimics the progress bar
  1107. used by Finder.
  1108.  
  1109.  
  1110. #### BINHEX     finger-server-c.hqx   ****
  1111.  
  1112. Date: Wed, 20 Oct 1993 10:00:21 -0400 (EDT)
  1113. From: Aaron Wohl <aw0g+@andrew.cmu.edu>
  1114. Subject: finger server for system 7
  1115.  
  1116. Finger server for system 7
  1117.  by Aaron Wohl N3LIW / Public Domain / mail n3liw+@cmu.edu
  1118. Home ftp site akutaktak.andrew.cmu.edu [128.2.35.1] /aw0g/finger*
  1119.  
  1120. Shows list of running processes and list of open files.
  1121. >From a unix server we finger a mac running a mail gateway
  1122. to see if it is still alive and what it is running.
  1123.  
  1124. Think C sources included
  1125.  
  1126.  
  1127. #### BINHEX     flight-simulator-20-c.hqx   ****
  1128.  
  1129. Date: Fri, 11 Dec 92 10:32:00 PST 
  1130. From: chris@carnival.lbl.gov (Chris Moll)
  1131. Subject: flight-simulator_v2.hqx 
  1132.  
  1133.  
  1134.     This is the source code for a program to
  1135. demonstrate how to do 3D perspective drawing and
  1136. clipping.  It's written as a sort of crude flight
  1137. simulator - you "fly" through a rather simple world.
  1138. It also shows how to do simple animation.    
  1139.     All math is fixed-point to make the speed tolerable
  1140. on feebler Macs.  With an FPU the speed would be roughly
  1141. the same using floating point.
  1142.     The package contains the source code, a ThinkC
  1143. vers.5.0.3 project, and an executable version compiled
  1144. for any Mac.  The changes from the old version are minor,
  1145. mostly I fixed things that would prevent it from compiling.
  1146.  
  1147.     Comments etc. to
  1148.         Chris Moll
  1149.         chris@carnival.lbl.gov
  1150.  
  1151. archive as /info-mac/source/c/flight-simulator_v2.hqx
  1152. (replace /info-mac/source/c/flight-simulator.hqx)
  1153.  
  1154.  
  1155. #### BINHEX     floating-windows-pas.hqx   ****
  1156.  
  1157. From: pottier@clipper.ens.fr (Francois Pottier)
  1158. Subject: no subject (file transmission) 
  1159. Date: Sat, 19 Jun 93 12:53:34 MET DST 
  1160.  
  1161. Hi archiver!
  1162. This is a small set of THINK Pascal 4 routines to handle floating windows
  1163. in a Pascal program. 
  1164. A few days back I looked on several ftp sites for such code snippets. All I
  1165. found was a C library by Patrick Doane. I translated it to THINK Pascal
  1166. and I also made it much shorter and clearer (IMHO). Since there is no
  1167. Pascal source code out there, I thought I'd submit to the archives.
  1168.  
  1169. This code is public domain. Whoever finds it useful may use it.
  1170. Enjoy
  1171.                             Francois Pottier
  1172.                             pottier@clipper.ens.fr
  1173.  
  1174. To the archiver : this file should be named something like
  1175. 'Pascal-FloatWin.hqx', I suppose. Thanks
  1176.  
  1177.  
  1178. #### BINHEX     fmenus-example-pas.hqx   ****
  1179.  
  1180. Date: Tue, 24 Nov 1992 13:45:06 +0800 
  1181. From: Peter N Lewis <peter@ncrpda.curtin.edu.au>
  1182. Subject: source/pascal/FMenusExample.hqx 
  1183.  
  1184.  
  1185. _______________________________________________________________________
  1186. Peter N Lewis <peter@ncrpda.curtin.edu.au>           Ph: +61 9 368 2055
  1187. This is some example code to demonstrate the use of MyFMenus.unit.  
  1188. This unit implements FMenus in a similar way to the Finder, which 
  1189. allows decoupling of the menu position from the code that executes 
  1190. the menu's command.  The example program is not a full shell, it 
  1191. simply implements the Menus, and each menu selection prints a 
  1192. message to the console window.  It should be fairly easy to understand.  
  1193. I've used this code in several programs, and it works quite nicely, 
  1194. avoiding the need to keep changing constants in the code every time 
  1195. you add a menu item.
  1196.  
  1197. TopSoft is working on an advanced version of this (written in C
  1198. for some strange reason), if you are interested in that, or other
  1199. things that TopSoft is doing, check out the ftp site at
  1200. syrinx.kgs.ukans.edu in the /topsoft directory, or ask to join
  1201. the mailing TS mailing list at ts-request@syrinx.kgs.ukans.edu
  1202. (hopefully you'll join inbetween the flame wars and not in the 
  1203. middle of one :-)
  1204.  
  1205. [Wouldn't it be nice if this came out comp.sources.mac?  
  1206. Too much to ask I guess]
  1207.  
  1208. Hope its useful to someone,
  1209.    Peter. <peter@ncrpdao.curtin.edu.au>
  1210.  
  1211. FMenus Example v1.0.0 Copyright 1992 Peter N Lewis 
  1212.  
  1213.  
  1214. #### BINHEX     game-master-isolation-pas.hqx   ****
  1215.  
  1216. From: gurhs@uniwa.uwa.edu.au (Rhys Hollow)
  1217. Subject: source/pascal/Isolation-rulebook.hqx 
  1218. Date: Wed, 13 May 92 21:49:08 WST 
  1219.  
  1220. The Moderators,
  1221.  
  1222. Here is the source to the GameMaster rulebook Isolation.  It assumes the
  1223. user has the GameMaster developer's kit.  
  1224.  
  1225. It is in Think Pascal 4.0
  1226.  
  1227. Rhys.
  1228. --
  1229. Rhys Hollow (gurhs@uniwa.uwa.oz.au) "ee'er by gum he's a bad'un!" -DangerMouse.
  1230.  
  1231.  
  1232. #### BINHEX     gamma-fading-lib-112-c.hqx   ****
  1233.  
  1234. From: <fprefect@engin.umich.edu>
  1235. Date: Tue, 9 Nov 93 02:49:25 -0500
  1236. Subject: Gamma Fade THINK C Libs v1.1.2
  1237.  
  1238.  
  1239. This is an updated post of my Gamma Fade THINK C library, 
  1240. bringing it to v1.1.2. The only change is a bug fix to bring
  1241. compatibility with EvenBetterBusError init. 
  1242.  
  1243. For those not initiated, Gamma Fades will ramp your Mac II
  1244. monitor brightness to black and back smoothly (ala Maelstrom).
  1245. The test app will demo the effect.
  1246.  
  1247. The library is free...
  1248.  
  1249. Matt Slot                           fprefect@engin.umich.edu
  1250.  
  1251. [Note to Moderator: The previous posting (v1.1.1) from earlier
  1252. tonite should be removed from the queue. This fixes an important
  1253. bug - Thanks MJS]
  1254.  
  1255.  
  1256.  
  1257. #### BINHEX     gamma-table-11-p.hqx   ****
  1258.  
  1259. Date: Wed, 21 Jul 1993 10:16:09 -0800 
  1260. From: mxmora@unix.sri.com (Matthew Xavier Mora)
  1261. Subject: Gamma Util Pascal Library 
  1262.  
  1263. I converted Matt Slot's Gamma Library so that it can be used by Pascal 
  1264. programmers like me.
  1265.  
  1266. Enclosed is Gamma util Pascal Library. This lets you do screen dimming
  1267. on monitors capable of doing dimming.
  1268.  
  1269.  
  1270. Matt
  1271.  
  1272. __________________________________________________________________
  1273. Matthew Xavier Mora                         The keeper of the UMPG
  1274. SRI International                             Matt_Mora@QM.sri.com
  1275. [Sent using Eudora 1.3]                        mxmora@unix.sri.com
  1276. __________________________________________________________________
  1277.  
  1278.  
  1279. #### BINHEX     ghost-10-c.hqx   ****
  1280.  
  1281. From: f8dy@netaxs.com (Mark Pilgrim)
  1282. Subject: Ghost 1.0 (source code)
  1283. Date: Thu, 16 Dec 1993 04:10:10 -0500 (EST)
  1284.  
  1285. Ghost is a classic word-building game for two or more players.  Players take
  1286. turns each adding a letter to build a word, and whoever finishes the word
  1287. loses the round.  Lose five rounds, and you become a "ghost" and are out of
  1288. the game!  Up to five human players can compete against up to five computer
  1289. players at a variety of skill levels.
  1290.  
  1291. Ghost is free and is distributed under the GNU General Public License; this
  1292. archive contains complete THINK C source code for the game, as well as complete
  1293. source code for an external application used to set up the game's self-
  1294. integrity checker. If you do not have FTP access, e-mail the author requesting
  1295. a copy of the game, the source code, or a list of other programs by the same
  1296. author.  The address is f8dy@netaxs.com.  Bug reports, comments, and
  1297. suggestions may be sent to the same address.
  1298.  
  1299. This archive contains both THINK C 5 and THINK C 6 project files.  Use
  1300. whichever one you wish and throw away the other.
  1301.  
  1302. The code demonstrates the basics of event handling, menus, hierarchical menus,
  1303. prefs file maintenance, dialogs, alerts, windows, off-screen bitmaps,
  1304. synchronous and asynchronous sounds, machine-independent timing loops, file
  1305. maintenance, Gestalt environment checking, apple events, and the not-quite-
  1306. yet-famous "cough to continue" modal dialog filter proc.  None of this is very
  1307. well commented, but feel free to direct any questions to f8dy@netaxs.com.
  1308.  
  1309. Ghost 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  1310.  
  1311.  
  1312. #### BINHEX     ghost-mouse-11-c.hqx   ****
  1313.  
  1314. From: f8dy@netaxs.com (Mark Pilgrim)
  1315. Subject: Ghost Mouse 1.1 (source code) 
  1316. Date: Sat, 13 Nov 1993 23:35:30 -0500 (EST) 
  1317.  
  1318. Ghost Mouse is a fun little INIT which will cause your mouse to disappear
  1319. if you stop moving it.  Due to numerous requests from users of version 1.0,
  1320. the mouse can stay stationery for about 2 seconds before it disappears.
  1321. This INIT is free and is distributed under the GNU General Public License;
  1322. this archive contains complete THINK C 6.0.1 source code and project files
  1323. for the INIT.  If you do not have FTP access, e-mail the author for a copy of
  1324. the INIT, the source code, or a list of other programs by the same author.
  1325. The address is f8dy@netaxs.com.
  1326.  
  1327. This code demonstrates the basics of writing and installing a VBL. This code
  1328. should work under any system, with any monitor, on all Macintoshes.  Please
  1329. report any bugs/comments/suggestions to f8dy@netaxs.com.
  1330.  
  1331. Ghost Mouse 1.1 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  1332.  
  1333.  
  1334. #### BINHEX     ghostscript-252b2-c.hqx   ****
  1335.  
  1336. Date: Wed, 3 Mar 93 15:07:37 PST 
  1337. From: mwfong@nisc.sri.com (Martin Fong)
  1338. Subject: MacGS 2.5.2b2 Dev 
  1339.  
  1340. 03 March 1993
  1341.  
  1342. These files constitute MacGS 2.5.2 Beta Two and supercede MacGS 2.5.2
  1343. Beta One.  The distribution is divided into three parts: a
  1344. self-contained runtime environment, complete with fonts, a
  1345. self-contained runtime environment *without fonts*, and, in accordance
  1346. with the GNU General License, a self-contained development
  1347. environment.  Please replace the previous version of MacGS with this
  1348. one.
  1349.  
  1350.      Thank you.
  1351.  
  1352.      Martin Fong                        mwfong@nisc.sri.com
  1353.      Senior Software Engineer           (415) 859-4251
  1354.      SRI International, EJ209
  1355.      333 Ravenswood Avenue
  1356.      Menlo Park, CA    94025
  1357.  
  1358. ------------------------------------------------------------------------
  1359.  
  1360. 01 March 1993
  1361.  
  1362. Overview
  1363. --------
  1364. MacGS_2.5.2b2_Runtime.cpt contains a self-contained runtime environment
  1365. for version 2.5.2 Beta 2 of Macintosh Ghostscript that runs on a
  1366. Macintosh with at least 2 Megabytes of memory.
  1367.  
  1368. MacGS_2.5.2b2_RT_No_Fonts.cpt is identical to MacGS_2.5.2b2_Runtime.cpt
  1369. except it does *not* contain the Ghostscript fonts.  This file was
  1370. specifically created for those who are upgrading from a previous version
  1371. of MacGS 2.5.x and who wish to avoid the cost of transferring
  1372. Ghostscript's fonts.  Please do *not* obtain this archive unless you are
  1373. upgrading from a previous version of MacGS 2.5.x.
  1374.  
  1375. MacGS_2.5.2b2_Dev.cpt contains the development environment for version
  1376. 2.5.2 Beta 2 of Macintosh Ghostscript.  Because it does *not* contain
  1377. all of the Ghostscript fonts, you must also obtain and unarchive
  1378. MacGS_2.5.2b2_Runtime.cpt to obtain a complete Ghostscript runtime
  1379. environment.  However, this archive contains sufficient files to run
  1380. standalone.
  1381.  
  1382. This implemention does *not* require 32-bit Color QuickDraw and runs
  1383. under both System 6 and System 7.  It should even run on black-and-
  1384. white displays.
  1385.  
  1386. This version does *not* presuppose a 68020 or better processor, nor does
  1387. it presuppose the existence of a 68881 FPU.
  1388.  
  1389.  
  1390. Getting Started
  1391. ------- -------
  1392. Once Ghostscript is initialized, use the MacGS menu item Open File... to
  1393. select a file to preview.  I suggest your opening one of the files in
  1394. gs:(Tests).  Also note that most of the files in the (macGS Tests)
  1395. folder assume that the Laserprep file was previously loaded.  Use the
  1396. MacGS menu item Resume to continue.
  1397.  
  1398. Because MacGS used hardcoded relative paths, I *strongly* suggest that
  1399. you neither rename nor move files contained within the MacGS folder.  If
  1400. you do, you risk of having MacGS fail during initialization and
  1401. prematurely terminating.
  1402.  
  1403.  
  1404. Mac-Specific Features
  1405. ------------ --------
  1406. Once Ghostscript is initialized, you can open and display PostScript
  1407. files via the MacGS menu.  This menu also allows you to save your
  1408. PostScript output as a PICT file.
  1409.  
  1410. You can Cut and Copy the rendered image to the clipboard.
  1411.  
  1412. The arrow keys will scroll the graphics window.  On an extended
  1413. keyboard, the Page Up/Down and Home/End keys will scroll the image
  1414. appropriately; the addition of the Option key specifies the horizontal
  1415. scrollbar.
  1416.  
  1417.  
  1418. Beta 2 Enhancements
  1419. ---- - ------------
  1420. The MacGS menu is now immediately available without having to bring the
  1421. Graphics Window frontmost.  The command-key equivalents of the MacGS
  1422. menu items are also honored.  (This entailed selectively pre-empting
  1423. THINK C's console driver *without* changing any of Symantec's code.)
  1424. As there have been reports of menu problems with Beta 1, these changes
  1425. may ameliorate those problems.
  1426.  
  1427. You may now select alternative device drivers via MacGS' Configure...
  1428. menu item.  In the near future (RSN :-), I'll look into providing a GUI
  1429. to allow you to specify device-specific attributes.  Please note that
  1430. most of the other drivers (viz., GIF and PBMPlus) create scratch files,
  1431. some which need to be deleted and others which need to be renamed.
  1432. However, this behavior seems to be a consequence of how these drivers
  1433. were originally implemented.
  1434.  
  1435. You may interactively selection a region to save to a file or copy to
  1436. the clipboard.  Although this feature has been successfully tested with
  1437. escher.ps, tiger.ps, and golfer.ps with a 2 Mbyte memory partition,
  1438. depending upon the complexity of your image, you may have increase
  1439. MacGS' memory size.
  1440.  
  1441. When MacGS is rendering via the Open File... menu item, the cursor is
  1442. changed to a spinning watch.
  1443.  
  1444. Under System 7, background processes are now given cycles.
  1445.  
  1446. showpage always requires the use of MacGS' Resume menu item.
  1447.  
  1448. If PICT recording runs out of memory, MacGS returns VMError.
  1449.  
  1450. To accommodate MacGS and intialization file interdependencies,
  1451. gs_mac.ps checks MacGS' version.
  1452.  
  1453.  
  1454. Beta 1 Enhancements and Bug Fixes
  1455. ---- - ------------ --- --- -----
  1456. You may now interrupt the execution of a large PS file by invoking Stop
  1457. >From the MacGS menu when GS pauses at the end of a page after a
  1458. showpage.
  1459.  
  1460. The name of the Laserprep file has been moved from MacGS' resource file
  1461. to the gs_mac.ps initialization file.
  1462.  
  1463. Runtime errors sometimes caused MacGS to terminate abnormally with a
  1464. typecheck error if the Ghostscript interpretor was implicitly invoked
  1465. via the Open File... menu item (-- matmesh2.ps did this).  This was
  1466. caused by PS programs which did not restore the operand and dictionary
  1467. stacks to their previous non-empty states.  The .macrunfile procedure in
  1468. gs_mac.ps has been modified to accommodate this ... *antisocial*
  1469. behavior.
  1470.  
  1471. In Beta zero, the Open File... command did not work the very first time
  1472. it was used.
  1473.  
  1474.  
  1475. Limitations (Caveat emptor!)
  1476. ----------- ------- --------
  1477. There is no way to gracefully interrupt MacGS while it is rendering.
  1478. Although I've implemented preliminary code (-- MacGS actually detects
  1479. Command-. key presses), this feature relies on GS using the return value
  1480. >From gp_check_interrupts ().  Peter says that this is on his list of
  1481. things to fix for GS 2.6.
  1482.  
  1483. MacGS 2.5.2 is *absymally* slow when rendering snowflak.ps.  This is
  1484. because Peter eliminated the use of driver-specific fill trapezoid
  1485. routines.  (MacGS *2.2* is actually very much faster.  Oh, well -- one
  1486. step forward, two steps back....)  Peter's suggestion is to create an
  1487. image device and let Ghostscript do the rendering.  However, the
  1488. tradeoff is that a resultant picture is comprised of a monolithic bitmap
  1489. and not composite, and editable, QD picture elements.
  1490.  
  1491. Printing appears to work for LaserWriters and DeskWriters.  However,
  1492. because MacGS is printing a backing-store QD picture, the resolution is
  1493. limited to 72 dpi (the Macintosh screen density).  In order to
  1494. accommodate laserprinter resolutions (e.g., 300 dpi or whatever), MacGS
  1495. would need to re-render the image at a higher resolution.  This is better
  1496. done with a dedicated (TBD) MacGS printer driver.
  1497.  
  1498.  
  1499. Bugs
  1500. ----
  1501. On a black-and-white (viz., 1-bit deep) display, some PS files make the
  1502. initial contents of the graphics window black; scrolling the window
  1503. sometimes ameliorates this problem.
  1504.  
  1505. There is a problem with GS 2.5.2 (which MacGS inherits) rendering
  1506. screen.ps.  Peter is fixing this in GS 2.6.
  1507.  
  1508. There have been reports of INIT/cdev conflicts (Menubar Pattern, Window
  1509. Shade, and BeHierarchic).  If you suspect that MacGS is failing because
  1510. of an INIT conflict, please drop me a note indicating the suspect
  1511. extension.  If the extension is either freeware or shareware, please
  1512. indicate its availability and I'll attempt to obtain a copy for testing.
  1513.  
  1514. MacGS appears to suffer from memory lossage.  Symptoms include partial
  1515. rendering to the screen, lack of backing-store, etc..  If this occurs,
  1516. quit and restart MacGS.  If this problem persists, increase MacGS'
  1517. memory size.  If it still persists, please drop me a note.
  1518.  
  1519.  
  1520. THINK C Configuration Issues
  1521. ----- - ------------- ------
  1522. Because THINK C's development environment only approximates a unix
  1523. system, you need to create an empty file named "sys/types.h" and put it
  1524. in THINK C's system header file path (viz., where THINK C searches for
  1525. "<.h>" files).  In addition, you'll need to create an alias (-- or a
  1526. copy, for those of you still using System 6) of stdlib.h named
  1527. "malloc.h" and also put it in THINK C's system header file path.
  1528.  
  1529.  
  1530. Resource Hacking
  1531. -------- -------
  1532. I've created a 'pref' resource (the associated TMPL resource is
  1533. included) that defines the size of the graphics output window.  If you
  1534. want MacGS to use something other than your screen's maximum size,
  1535. select the "Use resource" flag and change the resource's width and
  1536. height fields.  Also, if you're both adventurous and curious, this
  1537. resource contains additional fields whose values you may change for your
  1538. runtime enjoyment.
  1539.  
  1540. You may also change MacGS' default paths by modifying the first string
  1541. in the STR# 128 resource.  Caveat emptor!
  1542.  
  1543.  
  1544. Potential Futures
  1545. --------- -------
  1546. An automatic printing driver.
  1547.  
  1548. Perhaps someone will be adventurous and create a PostScript-to-EPS
  1549. driver using MacGS as a starting point.  :-)
  1550.  
  1551. Drag and drop preview/printing.
  1552.  
  1553. PAP level printing to PS printers.  Issues include what to do about
  1554. missing fonts.
  1555.  
  1556.  
  1557. Distribution Caveats
  1558. ------------ -------
  1559. Even though I've not necessarily included the caveat in all of MacGS'
  1560. source code, the distribution of the source code is controlled by the
  1561. GNU General License.
  1562.  
  1563.  
  1564. ...Martin Fong                mwfong@nisc.sri.com
  1565.  
  1566. ------------------------------------------------------------------------
  1567.  
  1568.  
  1569. #### BINHEX     gnuplot-35-c.hqx   ****
  1570.  
  1571. From: laval@londres.cma.fr (Philippe LAVAL)
  1572. Subject: Gnuplot 3.5 for Macintosh
  1573. Date: Fri, 10 Dec 1993 13:45:41 +0100
  1574.  
  1575.  
  1576. Hello,
  1577.  
  1578. Find inclosed a version for macintosh of Gnuplot 3.5
  1579. It as bee compacted and binhexed by CompactPro 1.33.
  1580.  
  1581. The sources are for Think C 5.04 but compile as well
  1582. with Think C 6.0
  1583.  
  1584. Bye
  1585.  
  1586.  
  1587. #### BINHEX     gravity-mouse-11-c.hqx   ****
  1588.  
  1589. From: f8dy@netaxs.com (Mark Pilgrim)
  1590. Subject: Gravity Mouse 1.1 (source code) 
  1591. Date: Sat, 13 Nov 1993 23:33:23 -0500 (EST) 
  1592.  
  1593. Gravity Mouse will cause your mouse to be occasionally overcome by gravity.
  1594. This INIT is free and is distributed under the GNU General Public License;
  1595. this archive contains complete THINK C 6.0.1 source code and project files
  1596. for the INIT.  If you do not have FTP access, e-mail the author for a copy
  1597. of the INIT, the source code, or a list of other programs by the same author.
  1598. The address is f8dy@netaxs.com.
  1599.  
  1600. This code demonstrates the basics of writing and installing a VBL. This code
  1601. should work under any system, with any monitor, on all Macintoshes.  Please
  1602. report any bugs/comments/suggestions to f8dy@netaxs.com.
  1603.  
  1604. Gravity Mouse 1.1 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  1605.  
  1606.  
  1607. #### BINHEX     gtq-scripting-lib-10b4-as.hqx   ****
  1608.  
  1609. Date: Tue, 23 Nov 1993 01:06:56 -0400
  1610. From: gtq1@cornell.edu (Greg Quinn)
  1611. Subject: AppleScript Scripting Extension Library
  1612.  
  1613. GTQ Scripting Library 1.0B4
  1614.  
  1615. This is my library of AppleScript Scripting Extensions (osax).  Would you
  1616. please archive this to the appropriate places.  This library is for
  1617. nonprofit, noncommercial distribution only.  No one should change or modify
  1618. this library in any way without my permission.
  1619.  
  1620. Greg Quinn
  1621. D3297
  1622. gtq1@Cornell.edu
  1623.  
  1624. #### BINHEX     headlines-101-c.hqx   ****
  1625.  
  1626. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  1627. Subject: Headlines 1.0.1 code 
  1628. Date: Mon, 23 Nov 92 9:22:20 EST 
  1629.  
  1630. This is the source code for the After Dark module "Headlines,"
  1631. version 1.0.1.
  1632.  
  1633. I don't know whether it's legal to redistribute two of the source files
  1634. I used.  For that reason, I've not removed the object code for those
  1635. files, and have included only their header files.  They are
  1636. ATMInterface.c and NeoTextBox.c.  If anyone can advise me about the
  1637. legality of distributing these sources, I'd like to hear from them.
  1638. In any event, you'll probably need to keep the project file and not
  1639. "Remove Objects" if you want to successfully compile Headlines.
  1640.  
  1641. Note that this submission does not include the code to Greg Smith's
  1642. "spew," which was the basis for Headlines.  This is only because Greg's
  1643. distribution terms precluded putting this on e.g. Pacific HiTech's
  1644. Info-Mac CD-ROM.  My own terms, now, are a little looser.
  1645. I ftp'd the source to "spew" from wuarchive.wustl.edu, in
  1646. /usenet/comp.sources.games/volume01, where it probably still is.
  1647. --
  1648.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  1649.  
  1650.  
  1651. #### BINHEX     hier-menu-demo-c.hqx   ****
  1652.  
  1653. From: kenlong@netcom.com (Ken Long)
  1654. Subject: hiermenudemo.sit.hqx
  1655. Date: Sat, 25 Dec 1993 09:32:30 -0800 (PST)
  1656.  
  1657.  
  1658. This is a heirarchial menu demo I downloaded off BMUG, then made
  1659. run on Think C 5.0.4.
  1660.  
  1661. It teaches how to make hierachial menus by "hot wiring" them, as
  1662. the ones in the Symantec Think C demo project "Bullseye."  It uses
  1663. a resource only for the 'ICON' and 'ALRT' resources, but if someone
  1664. wants to use a 'cicn' they need only dump the 'ICON" and put in a
  1665. 'cicn' of the same ID.  The 'cicn's can be from 8 x 8 pixels to
  1666. 64 x 64 pixels or anything in between. An 8 pixel high by 64 pixel
  1667. wide 'cicn' with a space for the menu name is a unique format.
  1668.  
  1669. The following is the original readme content.
  1670. ---------------------------------------------------------------
  1671. Program name: Hier Menu Demo
  1672.  
  1673. Author:  Ted C. Johnson, Sun, Aug 14 1988.
  1674.  
  1675. Compilation instructions:  
  1676.     use Lightspeed C, v.2.15.  
  1677. This program DOES use a resource file.  
  1678. I developed this program on a Mac SE HD20 running 
  1679. System/Finder 4.1/5.5.
  1680.  
  1681. Summary:  
  1682. This program demonstrates how to use hierarchical menus.  It 
  1683. also demonstrates how to handle DA's, how to make your own
  1684. "About…" box (with an icon), and how to use dialog boxes.
  1685.  
  1686. The use of this source code is free, provided it is for 
  1687. non-profit purposes.  I hope it can save someone some time!
  1688.  
  1689. However the name "T Bear Software" and the T Bear icon are 
  1690. both CopyRight © 1988 by Ted C. Johnson, and may NOT be used 
  1691. without my express written permission.
  1692. ----------------------------------------------------------------
  1693.  
  1694. #### BINHEX     image-144-pas.hqx   ****
  1695.  
  1696. Date: Thu, 18 Jun 92 10:20:03 -0400 
  1697. From: wayne@zippy.nimh.nih.gov(Wayne Rasband)
  1698. Subject: NIH Image 1.44 Source(Binhex) 
  1699.  
  1700. This is the Think Pascal source code for Image 1.44, a public domain Mac
  1701. program for capturing, analyzing, editing, annotating, animating, and
  1702. printing images. It consists of 32,853 lines of source code in 20 modules.
  1703.  
  1704. --wayne rasband(wayne@helix.nih.gov)
  1705.  
  1706.  
  1707.  
  1708.  
  1709. #### BINHEX     infinity-windoid-22-c.hqx   ****
  1710.  
  1711. Date: Fri, 5 Mar 1993 11:52:58 -0600 
  1712. From: r-harms@grayhawk.rent.com (Richard R. Harms)
  1713. Subject: Infinity Windoid v2.2 
  1714.  
  1715. The attached file contains a wdef for windoids that supports most of the
  1716. features that the system's regular wdef provides. Troy Gaul (the author) is
  1717. releasing it public domain, in the hopes that more packages will use it
  1718. instead of some of the black and white windoid that are now out there (just
  1719. adding this to some existing programs improves the appearance of their
  1720. interface a lot). The source code is included, along with a Makefile for
  1721. MPW, and a Project file for Think C.
  1722.  
  1723. Features include: Supports System 7-style coloring of windows.  In System
  1724. 7, the tinge color set by the user in the Color control panel is used.
  1725. Close box can be enabled from NewWindow by setting goAwayFlag. Zoom box
  1726. (special case) is implemented. Title bar can appear along the left of the
  1727. window.  For MacApp users, the left/top behavior of the proc ID can be
  1728. switched. System 6 coloring scheme is also supported (can be set in Kolor
  1729. or a similar control panel). In System 7, the windoid will be drawn
  1730. correctly even when it crosses monitors of differing depths. In System 7,
  1731. indexed color tables are checked to see if there are enough different
  1732. colors to display the color version (like the system WDEF).
  1733.  
  1734. -rh
  1735. --
  1736. Richard R. Harms            Internet: r-harms@grayhawk.rent.com
  1737. 1217 24th, Suite 49          AOnline: Grayhawk             AppleLink: D2656
  1738. Des Moines, Iowa 50311            Fax: 515/884-2736       Unix: 515/277-6753
  1739.  
  1740.  
  1741.  
  1742. #### BINHEX     irc-client-c.hqx   ****
  1743.  
  1744. Date: Fri, 23 Jul 93 13:39:08 MET DST 
  1745. From: Olaf Titz <s_titz@ira.uka.de>
  1746.  
  1747. This is a Macintosh IRC (Internet Relay Chat) client. 
  1748. It allows you to talk to people all over the world over the Internet.
  1749.  
  1750. It will run on any Mac with System version 6.0 or greater and the 
  1751. MacTCP driver, version 1.0 or greater.
  1752.  
  1753. This is free software according to the GNU General Public License 
  1754. (any version). Refer to the file COPYING for precise terms and conditions.
  1755.  
  1756. This package contains complete source code and auxiliary files for 
  1757. building the binary with THINK Pascal 2.0.1 or later versions.
  1758. Portions are Copyright 1992 Peter N.Lewis, read the notices in the
  1759. TCP Libraries files.
  1760.  
  1761. Send comments, suggestions, bug reports etc. to:
  1762. Olaf Titz  <s_titz@ira.uka.de>
  1763.  
  1764.  
  1765. #### BINHEX     ircle-151-p.hqx   ****
  1766.  
  1767. Date: Thu, 25 Nov 93 17:39:09 MET
  1768. From: Olaf Titz <s_titz@ira.uka.de>
  1769. Subject: ircle 1.5.1 source
  1770.  
  1771. This is a Macintosh IRC (Internet Relay Chat) client. 
  1772. It allows you to talk to people all over the world over the Internet.
  1773.  
  1774. It will run on any Mac with System version 6.0 or greater and the 
  1775. MacTCP driver, version 1.0 or greater.
  1776.  
  1777. This is free software according to the GNU General Public License 
  1778. (any version). Refer to the file COPYING for precise terms and conditions.
  1779.  
  1780. This package contains complete source code and auxiliary files for 
  1781. building the binary with THINK Pascal 2.0.1 or later versions.
  1782. Portions are Copyright 1992 Peter N.Lewis, read the notices in the
  1783. TCP Libraries files.
  1784.  
  1785. Send comments, suggestions, bug reports etc. to:
  1786. Olaf Titz  <s_titz@ira.uka.de>
  1787.  
  1788.  
  1789.  
  1790. #### BINHEX     jotto-ii-10-c.hqx   ****
  1791.  
  1792. From: f8dy@netaxs.com (Mark Pilgrim)
  1793. Subject: Jotto ][ 1.0 (source code)
  1794. Date: Sat, 11 Dec 1993 18:02:14 -0500 (EST)
  1795.  
  1796. Jotto ][ is a simple word game based on logic and frustration.  The computer
  1797. will pick a 5- or 6-letter word from a 2000+ word database, and you have 15
  1798. tries to guess it.  You will get feedback on how many letters in your guess
  1799. are in the actual word, but beware: each guess must be a valid word, or you
  1800. will or you will not get any feedback about it at all.
  1801.  
  1802. Jotto ][ is the sequel to Jotto and Jotto Deluxe, featuring better graphics,
  1803. more sounds, animation, the ability to play with either 5- or 6-letter words,
  1804. the ability to learn new words if desired, and better "about" boxes.  It
  1805. supports color, grayscale, and B/W monitors and works under system 6 or 7.
  1806. (For technical reasons, sounds may require system 6.0.7 or later.)  Please
  1807. e-mail comments and suggestions to the author at f8dy@netaxs.com.
  1808.  
  1809. This game is distributed under the GNU General Public License.  This archive
  1810. contains complete THINK C 6.0.1 source code and related project files.  It
  1811. also contains the source to another application used to set up Jotto's self-
  1812. integrity checker.  The code in this archive demonstrates handling events,
  1813. menus, apple events, a prefs file, Gestalt environment checking, hierarchical
  1814. menus, dialogs, windows, standard file dialogs, and the soon-to-be-famous
  1815. "cough to continue" modal dialog filter proc.  None of this is very well
  1816. commented, but feel free to direct any questions to f8dy@netaxs.com.
  1817.  
  1818. Jotto ][ 1.0 is copyright 1993 Mark Pilgrim, MerriMac Software Group.
  1819.  
  1820.  
  1821. #### BINHEX     jpeg-convert-c.hqx   ****
  1822.  
  1823. Date: Sat, 27 Feb 93 12:26:45 CST 
  1824. From: wf-jim!brunner@terminator.rs.itd.umich.edu (Jim Brunner)
  1825. Subject: source/c/JPEG-Convert-src10.hqx 
  1826.  
  1827. This is the source code distribution for version 1.0 of JPEG Convert.  JPEG
  1828. Convert is a Macintosh application that acts as an interface for the
  1829. Independent JPEG Group's code.  The Independent JPEG Group's code supports
  1830. JPEG conversion to different formats.
  1831.  
  1832. This distribution file contains source code only.  The pre-compiled
  1833. application is available under a separate distribution.  This distribution
  1834. does not contain the source for the Independent JPEG Group's software;
  1835. instructions for obtaining the IJG source are included in this
  1836. distribution.
  1837.  
  1838. Features:
  1839.         * Supports system 6 or 7
  1840.         * Converts JPEG file to/from GIF, PPM, & TARGA
  1841.         * RLE support available (not in default distribution)
  1842.         * Supports quantization, dithering, smoothing, grayscale
  1843.         * Supports batch drag & drop conversion with system 7
  1844.         * Balloon help and nifty dialogs
  1845.         * SOURCE CODE IS AVAILABLE (separate distribution)
  1846. -----------------------------------------------------------------------
  1847. Jim Brunner  (brunner%wf-jim.uucp%hobbes.uucp@twerp.ease.arco.com)
  1848.  
  1849.  
  1850. #### BINHEX     key-cap-app-c.hqx   ****
  1851.  
  1852. From: mxmora@unix.sri.com (Matthew Xavier Mora)
  1853. Subject: KeyCapApp 2.0 (source exaple)
  1854. Date: Fri, 10 Dec 1993 10:29:37 -0800
  1855.  
  1856.  
  1857.  
  1858. --========================_7108268==_
  1859. Content-Type: text/plain; charset="us-ascii"
  1860.  
  1861. Enclosed is my modified version of DTS's keyCap App. I add the 3D key effect
  1862. and modifier key support. Maybe some one else can add more features. The
  1863. source code is in c. A Think C project is included.
  1864.  
  1865.  
  1866.  
  1867. Xavier
  1868.  
  1869. (should go in the source code dir)
  1870.  
  1871.  
  1872.  
  1873. --========================_7108268==_
  1874. Content-Type: application/mac-binhex40; name="kcapApp_2.0.dd"
  1875. Content-Disposition: attachment; filename="kcapApp_2.0.dd"
  1876.  
  1877.  
  1878. #### BINHEX     launch-creator-c.hqx   ****
  1879.  
  1880. Date: Wed, 3 Nov 93 11:37:36 -0600
  1881. From: oleg@ponder.csci.unt.edu (Kiselyov Oleg)
  1882. Subject: launch-creator.cpt - (source) get a file "double-clicked" from a running pgm
  1883.  
  1884.  
  1885. What:    get any file "double-clicked" from within a running program
  1886. Contents:
  1887.     launcher.cc     - code itself (commented)
  1888.     vlauncher.cc    - verification routine
  1889. Language: Symantec C++ 6.0 (though worked for Think C 5.0, too)
  1890. System: System 7.x, but probably 6.x is OK, too.
  1891. Note: needs standard environment, see myenv-notify.cpt
  1892. Comments to: oleg@ponder.csci.unt.edu, oleg@unt.edu
  1893.  
  1894. Explanation:
  1895. This is a simple program that, given a file name, launches an
  1896. application-creator and has it handle the file. If the file
  1897. is an application, it is launched itself. The net result is
  1898. exactly the same as if the user had double-clicked on the file.
  1899. Synopsis
  1900.     void open_selection(const char * full_path_name)
  1901. Where the 'full_path_name' tells the full path name of the file that
  1902. should be "double-clicked". Though, a relative path name would do, too.
  1903. The present program achieves the magic by sending an 'Open Selection'
  1904. event to the Finder. It is significantly based on the FinderEvents
  1905. stack by Jon Pugh and Apple Computer, Inc. (C) 1991-92 Apple Computer, Inc.)
  1906. (which is written in Pascal and _very_ big and messy)
  1907.  
  1908. ------------------------------------------------------------------------
  1909.  
  1910. #### BINHEX     little-c.hqx   ****
  1911.  
  1912. Date: Mon, 4 Oct 93 23:34:51 -0700
  1913. From: tsyang@dec-9.CE.Berkeley.EDU (Tzong-Shuoh Yang)
  1914. Subject: little_c.hqx - a C interpreter (Think C source)
  1915.  
  1916.  
  1917. This is the Think C 6.01 version of Little_C -- a subset C interpreter
  1918. by Herbert Schildt.
  1919.  
  1920. Little C is a C interpreter that can execute a subset of K&R ANSI C
  1921. programming language.  ANSI C is a robust and powerful programming
  1922. language, but the Little C interpreter only implements a limited range
  1923. of features. These include: parameterized functions with local variables;
  1924. recursion; if statement; do-while, while, and for loops; integer and
  1925. character variables; global variables; integer, character, and string
  1926. constraints; return statement; several library functions; several
  1927. operators; functions returning integers; and comments. A recursive-descent
  1928. parser is used to implement the C interpreter. Details of the development,
  1929. coding, and functionality of the C interpreter are described in
  1930.  
  1931.  Schildt, Herbert.
  1932.    Building your own C interpreter.
  1933.    Dr. Dobb's Journal of Software Tools v14, n8 (August, 1989):38
  1934.    (16 pages).
  1935.  
  1936. The original source code can be obtained by anonymous ftp from sites with
  1937. ddjmag archive, e.g. oakland.oak.edu.
  1938.  
  1939. Enjoy.
  1940.  
  1941. T. S. Yang  (tsyang@ce.berkeley.edu)
  1942. ================================================================
  1943.  
  1944. #### BINHEX     lp-daemon-332-c.hqx   ****
  1945.  
  1946. Date: Thu, 1 Apr 1993 09:52:57 +0800 (WST) 
  1947. From: "Casper A. Boon" <casper@mips.cs.murdoch.edu.au>
  1948. Subject: lpDaemon332.src.cpt.hqx 
  1949.  
  1950. ---2039267323-721586092-733629388:#10490
  1951. Content-Type: TEXT/PLAIN; charset=US-ASCII
  1952.  
  1953.  
  1954. Here are the THINK C 5.0.4 sources for version 3.3.2 of lpDaemon.  This
  1955. corrects a serious bug in version 3.3.1.
  1956.  
  1957. #### BINHEX     lp-daemon.hqx   ****
  1958.  
  1959. Date: Wed, 20 Jan 1993 15:15:41 +0800 (WST) 
  1960. From: "Casper A. Boon" <casper@mips.cs.murdoch.edu.au>
  1961. Subject: lpDaemon - a BSD compatible printer daemon for the mac 
  1962.  
  1963.  
  1964. lpDaemon and LPR
  1965. ----------------
  1966.  
  1967. lpDaemon is a utility that implements the Berkeley Line Printer Protocols on
  1968. the Macintosh. It normally spools postscript file sent from a unix host and
  1969. sends them to a LaserWriter on the Mac network.
  1970.  
  1971. LPR is an lpDaemon client that submits jobs to a printer queue.  Typically a
  1972. text file is to a unix print queue.
  1973.  
  1974. lpDaemon and LPR run under system 7 and require MacTCP.
  1975.  
  1976.  
  1977. Casper Boon
  1978. April 1993
  1979.  
  1980. ===========================================================================
  1981. Casper A. Boon,                               casper@mips.cs.murdoch.edu.au
  1982. Computer Science Programme,
  1983. School of Mathematical and Physical Sciences,
  1984. Murdoch University, South Street,                     PHONE:  (09) 360 2790
  1985. Murdoch, Western Australia, 6150.                  OVERSEAS: +61 9 360 2790
  1986. ===========================================================================
  1987. ---2039267323-721586092-733629388:#10490
  1988. Content-Type: APPLICATION/octet-stream; name="lpDaemon332.src.cpt.hqx"
  1989. Content-ID: <Pine.3.05.9304010927.B10490@mips>
  1990. Content-Description: 
  1991.  
  1992.  
  1993. #### BINHEX     mac-gzip-01b2-c.hqx   ****
  1994.  
  1995. Date: Sat, 13 Nov 93 21:13:48 +0100 
  1996. From: Jose A. Gutierrez <MacSPD@ivo.cps.unizar.es>
  1997. Subject: MacGzip 
  1998.  
  1999. Hello
  2000.  
  2001. Enclosed MacGzip 0.1b2 with sources.  Is very similar to the previous version,
  2002. but this one is according with GNU's Public Lisence (I think it is).
  2003.  
  2004. have a good time.
  2005.  
  2006. ________________________________________________________________________________
  2007.  
  2008.                                                         J.A. Gutierrez E.
  2009. ________________________________________________________________________________
  2010.  
  2011.  
  2012.  
  2013. #### BINHEX     mac-mud-32-c.hqx   ****
  2014.  
  2015. Date: Fri, 26 Mar 1993 17:56:39 -0800
  2016. From: skelmir@uvapsy.psy.uva.nl (Mimir Reynisson)
  2017. Subject: MacMud 3.2 source code
  2018.  
  2019.  
  2020. Here is the source code for MacMud 3.2. A multi-user text based
  2021. adventure game interpreter. See /info-mac/games/MacMud3.2.sea.hqx
  2022. for details.
  2023. ------------------------------------------------------------------------------
  2024. Mimir Reynisson                Email: skelmir@uvapsy.psy.uva.nl
  2025. Faculty of Psychology                 sg_Reynisson@macmail.uvapsy.psy.uva.nl
  2026. University of Amsterdam               rson@rhi.hi.is
  2027. Roetersstraat 15
  2028. 1018 WB Amsterdam                     Tel: (+31)20-525-6762
  2029. The Netherlands                       Fax: (+31)20-525-6710
  2030.  
  2031.  
  2032. #### BINHEX     mac-rtrace-10-c.hqx   ****
  2033.  
  2034. Date: Tue, 10 Nov 92 11:36:30 EST 
  2035. From: reid@sunpix.East.Sun.COM (Reid Judd - Sun NC Development Center)
  2036. Subject: [*] Submission: /info-mac/source/c/RTrace-1.0-src.cpt.hqx 
  2037.  
  2038.  
  2039.  
  2040.   This is the source distribution for Mac-RTrace-1.0.  It requires 
  2041.   Think-C-5.0 to compile it and you can (optional) use the "Balloon Writer" 
  2042.   from APDA in order to add the Balloon help to it once you've built it.
  2043.  
  2044.   About 50 scenes to use with RTrace are available in the 
  2045.   file RTrace-1.0-scenes.cpt.hqx and more are available at the
  2046.   FTP site: asterix.inescn.pt [192.35.246.17] in the directory pub/RTrace. 
  2047.  
  2048.  
  2049.   RTrace was written by Antonio Costa at INESC-Norte in Portugal.  The
  2050.   MacIntosh version was written by Greg Ferrar at Ohio State and myself
  2051.   (Reid Judd at Illuminati).
  2052.  
  2053.   RTrace supports these capabilities:
  2054.     point lights, directional lights, spot lights with fall-off, extended
  2055.     lights, 2 ways of defining surfaces, spheres, axis-aligned
  2056.     parallelipipeds, cylinders, cones, bicubic patches, polygons,
  2057.     polygonal patches, high quality 3D text, CSG operations,
  2058.     4x4 matrix transformations, textures, depth of field, diffuse
  2059.     distribution, stereoscopic pair creation, ...
  2060.  
  2061.     Procedural textures (with 4x4 matrix transformations) are also
  2062.     supported: checkerboard, color blotches, marble, bump map,
  2063.     fractal-brownian-motion, wood, glossy, image mapping, waves,
  2064.     and many others.
  2065.  
  2066.   Mac-RTrace uses parametric equations (using an algebraic equation
  2067.   parser) to define animations and it outputs PICT image, PPM images,
  2068.   and (of course) QuickTime movies.  
  2069.  
  2070.   Enjoy,
  2071.             -- Reid Judd
  2072.  
  2073.      ILLUMINATI@AppleLink.Apple.Com
  2074.      2617 Sweetbriar Rd.
  2075.      Durham, NC  27704
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081. ----- Begin RTrace-1.0-src.cpt.hqx -----
  2082.  
  2083.  
  2084. 12-Nov-92  6:37:15-GMT,656601;000000000001
  2085. Return-Path: <macmod@SUMEX-AIM.Stanford.EDU>
  2086. Received: from SUMEX-AIM.Stanford.EDU by CAMIS.Stanford.EDU (4.1/inc-1.0)
  2087.     id AA03183; Wed, 11 Nov 92 22:36:59 PST
  2088. Full-Name: Info-Mac Moderator
  2089. Received: by SUMEX-AIM.Stanford.EDU (4.1/inc-1.0)
  2090.     id AA22118; Wed, 11 Nov 92 22:36:56 PST
  2091. From: macmod@SUMEX-AIM.Stanford.EDU (Info-Mac Moderator)
  2092. Resent-Message-Id: <9211120636.AA22118@SUMEX-AIM.Stanford.EDU>
  2093. Date: Wed, 11 Nov 1992 22:36:55 PST
  2094. Resent-To: backmod@camis.stanford.edu
  2095. Resent-Date: Wed, 11 Nov 1992 22:36:55 PST
  2096. Resent-From: Info-Mac Moderator <macmod@sumex-aim.Stanford.EDU>
  2097. Message-Id: <CMM.0.88.721550215.macmod@sumex-aim.Stanford.EDU>
  2098. Apparently-To: backmod@camis
  2099.  
  2100.  
  2101. #### TEXT       mac-speech-p.txt   ****
  2102.  
  2103. Date: Sun, 22 Aug 1993 17:21:29 -0500
  2104. From: PAUL M SHELDON <psheldon@utdallas.edu>
  2105. Subject: simple speech manager translation to pascal code
  2106.  
  2107.     I have little experience in C and was grateful for the posting, in C,
  2108. of speech manager routine calls. It gave me an opportunity to make a
  2109. simple exercise to value learning C in the future by the book.
  2110.     In the following, I paste my C to pascal code translation of a
  2111. submission of a quick hack on this archive by Alan Coopersmith as
  2112. /info-mac/dev/mac-speech-01.hqx. It was a lot of fun to figure this simple
  2113. translation with a kid I mentor and then go on late into the night to make
  2114. the compiling linking and execution work.
  2115.     I tried to comment the code with some of my hard won understanding.
  2116.     Perhaps this brief segment will improve others courage as it has mine.
  2117. I had a lot of psychological inertia to get moving into enthusiastic momentum.
  2118. I look forward to translating Alexander W. Kourakos' C demo with Paul
  2119. Traue, my mentor-kid. Povl H. Pedersen has given me some reassurance.
  2120.     Notice what I am trying to say is this isn't much of a boast for me,
  2121. just a sense of remarkable joy that I can hook into new system extensions
  2122. from apple with pinterfaces. A few years ago the only guys I knew about
  2123.  
  2124. #### BINHEX     mac-starter-c.hqx   ****
  2125.  
  2126. Date: Tue, 13 Oct 1992 11:32 EDT 
  2127. From: David Eck <ECK@BINAH.CC.BRANDEIS.EDU>
  2128. Subject: MacStarter_C (THINK C 5.0 application shell source code) 
  2129.  
  2130.  
  2131. This is an application shell for writing quick, small programs
  2132. in THINK C 5.0.  If you are already a Mac programmer, you
  2133. probably have written your own such shell.  However, I am
  2134. posting this to info-mac because
  2135.    -- it might be useful for a C programmer who wants to
  2136. get started writing programs with Mac interfaces without
  2137. facing the darker parts of Inside Macintosh or the THINK
  2138. Class library
  2139.    -- it uses a window class to provide the basic functionality
  2140. of windows (This provides a concrete example of how objects can
  2141. be used in THINK C.  It is also a neat way of localizing the 
  2142. changes you need to make in the shell to produce a working
  2143. program.)
  2144.    -- I have actually put in the time to write fairly detailed
  2145. comments explaining how to use the shell
  2146.    -- I have included the code for two sample programs, also
  2147. liberally commented (I have separately posted a compiled version
  2148. of one of these programs, pentominos, to info-mac)
  2149.  
  2150.     (What you are getting here is a self-extracting archive of
  2151. a folder that contains a THINK C 5.0 project file, several
  2152. C source files, and a README file.)
  2153.  
  2154.                                David Eck
  2155.                                eck@hws.bitnet
  2156.  
  2157.  
  2158. #### BINHEX     mac-starter-p.hqx   ****
  2159.  
  2160. From: David Eck <ECK@hws.bitnet>
  2161. Subject: dev/src/mac-starter-pascal.hqx
  2162. Date: Tue, 14 Dec 1993 17:32:13 -0600
  2163.  
  2164.  
  2165.  
  2166. --========================_13931840==_
  2167. Content-Type: text/plain; charset="us-ascii"
  2168.  
  2169. MacStarter_Pascal:
  2170.  
  2171.     A Macintosh application shell for writing small-to-moderate
  2172.     programs with THINK Pascal 4.0,
  2173.  
  2174.     AND including "expression.p", which provides facilities for
  2175.     parsing and evaluating mathematical expressions such as
  2176.     "x~2+7" or "rate * sin(omega)".
  2177.  
  2178. MacStarter_Pascal uses the object-oriented features of THINK
  2179. Pascal to implement windows with the standard Macintosh behavior.
  2180. The windows can contain "decorations" such as buttons and
  2181. text-input boxes.  A lot of comments are included in the source
  2182. files, and the source code for several simple applications is
  2183. included.  The expression-manipulation unit, "expression.p" can
  2184. be used separately from the rest of the shell; one of the sample
  2185. applications shows how this unit can be used for graphing
  2186. functions.
  2187.  
  2188. Note that MacStarter_Pascal is similar to, but more sophisticated
  2189. than, MacStarter_C (for use with THINK C), which I have distributed
  2190. previously.
  2191.  
  2192. This application shell is appropriate for programs that don't
  2193. need all the power and complexity of the THINK Class Library.
  2194. It is provided free-of-charge and royality-free, and it can
  2195. be freely distributed provided no charge is made for it.
  2196. (I also hereby give my permission for it to be distributed
  2197. on the info-mac CD ROM.)
  2198.  
  2199. This is a binhexed self-extracting archive.
  2200.  
  2201. David Eck
  2202. Department of Mathematics and Computer Science
  2203. Hobart and William Smith Colleges
  2204. Geneva, NY   14456
  2205. eck@hws.bitnet
  2206.  
  2207.  
  2208.  
  2209. --========================_13931840==_
  2210. Content-Type: application/mac-binhex40; name="MacStarter_Pascal.sea"
  2211. Content-Disposition: attachment; filename="MacStarter_Pascal.sea"
  2212.  
  2213.  
  2214. #### BINHEX     macbinary-ii-plus-pas.hqx   ****
  2215.  
  2216. Date: Tue, 9 Feb 1993 15:36:53 +0800 
  2217. From: Peter N Lewis <peter@cujo.curtin.edu.au>
  2218. Subject: source/pascal/macbinary2+100.hqx 
  2219.  
  2220.  
  2221. This is the THINK Pascal 4.0.2 source code for MacBinary II+, a 
  2222. System 7 drag&drop converter for MacBinary files.  The source 
  2223. code may be used for any non-commercial (ie, shareware or 
  2224. freeware) purpose as long as I get a mention in the about box 
  2225. and documentation of any derivative program.  The code is very 
  2226. sparsely commented.  All pascal units ending with .unit are 
  2227. taken from my personal library of reusable modules, and should 
  2228. be fairly easy to incorporate into any other program.  The 
  2229. source code uses Michael Hecht's Task Manager code, and could 
  2230. be used as an example of how to use that code, as well as 
  2231. supporting the core Apple Events.
  2232.  
  2233. Hope its useful to someone,
  2234.    Peter. <peter@cujo.curtin.edu.au>
  2235.  
  2236. MacBinary II+ v1.0.0 Copyright 1992-93 Peter N Lewis 
  2237.  
  2238.  
  2239. #### BINHEX     macintosh-tracker-11-c.hqx   ****
  2240.  
  2241. Date: Sat, 2 Oct 93 16:10:41 -0500
  2242. From: tomlaw@yar.cs.wisc.edu (Thomas R. Lawrence)
  2243. Subject: Macintosh Tracker 1.1 Source Code
  2244.  
  2245.  
  2246. Macintosh Tracker 1.1 Source Code
  2247.  
  2248. PLEASE send all correspondence to tomlaw@world.std.com!!!
  2249.  
  2250.  
  2251.  
  2252. #### BINHEX     mailcheck-c.hqx   ****
  2253.  
  2254. Date: Wed, 20 Oct 1993 10:05:06 -0400 (EDT)
  2255. From: Aaron Wohl <aw0g+@andrew.cmu.edu>
  2256. Subject: check unix mail client
  2257.  
  2258. mailcheck / by Aaron Wohl N3LIW / Public Domain / mail n3liw+@cmu.edu
  2259. Home ftp site akutaktak.andrew.cmu.edu [128.2.35.1] /aw0g/mailcheck*
  2260. Available from compuserve in the ham radio sig/packet section
  2261.  
  2262. Mailcheck is an Init/cdev/driver to check for mail in a server
  2263. (unix) mailbox via UDP (TCP/IP) and pop a notification manager
  2264. dialog window or play a sound when mail comes in.
  2265.  
  2266. Sources included.  It talks to a unix server which is also
  2267. available from the above site.
  2268.  
  2269. Aaron Wohl (aw0g+@andrew.cmu.edu)
  2270.  
  2271.  
  2272. #### TEXT       mbprintf-c.txt   ****
  2273.  
  2274. Date: Wed, 2 Dec 92 16:28:25 PST
  2275. From: macmod@SUMEX-AIM.Stanford.EDU (Info-Mac Moderator)
  2276.  
  2277. orrow.stanford.edu!stanford.edu!agate!ucbvax!hplabs!sdd.hp.com!elroy.j        pl.nasa.gov!usc!davidp 
  2278. From: davidp@calvin.usc.edu (David Peterson) 
  2279. Newsgroups: comp.sys.mac.programmer 
  2280. Subject: Just for you, an early Christmas present 
  2281. Message-Id: <1fj5ksINNo34@calvin.usc.edu> 
  2282. Date: 2 Dec 92 20:17:32 GMT 
  2283. Reply-To: davidp@usc.edu 
  2284. Organization: University of Southern California, Los Angeles, CA 
  2285. Lines: 99 
  2286. Nntp-Posting-Host: calvin.usc.edu 
  2287. Apparently-To: info-mac 
  2288. Resent-To: backmod
  2289. Resent-Date: Wed, 2 Dec 1992 16:28:22 PST
  2290. Resent-From: Info-Mac Moderator <macmod@sumex-aim.Stanford.EDU>
  2291.  
  2292.  
  2293.  
  2294.  
  2295. #### BINHEX     menu-fixer-10-c.hqx   ****
  2296.  
  2297. From: f8dy@netaxs.netaxs.com (Mark Pilgrim)
  2298. Subject: Menu Fixer 1.0 (source code)
  2299. Date: Mon, 15 Nov 1993 11:03:20 -0500 (EST)
  2300.  
  2301. Menu Fixer is a programmer's tool which will examine all the MENU resources
  2302. in a file and report (and optionally fix) discrepancies between the MENU
  2303. resource ID and the menu's internal menu ID.  If your menus are showing up
  2304. scrambled or not showing up at all, try this first!
  2305.  
  2306. Menul Fixer is distributed under the GNU General Public License; this
  2307. archive contains complete THINK C 6.0.1 source code for the Menu Fixer
  2308. application, complete source code for an external application used to set
  2309. up the application's self-integrity checker, and notes for using the self-
  2310. integrity checker.  You may freely redistribute this package as a whole;
  2311. you may freely modify this application and re-distribute it under the GNU
  2312. General Public License.  See the file "GNU General Public License" in this
  2313. archive for details.
  2314.  
  2315. This code handles, among other things, events, menus, apple events, Gestalt
  2316. environment checking, hierarchical menus, dialogs, windows, off-screen
  2317. bitmaps, resource file management, and standard file dialogs.  None of
  2318. this is very well commented, but feel free to direct any questions to
  2319. f8dy@netaxs.com.
  2320.  
  2321. Menu Fixer 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  2322.  
  2323.  
  2324. #### BINHEX     morpion-100-p.hqx   ****
  2325.  
  2326. From: Peter N Lewis <peter@ncrpda.curtin.edu.au>
  2327. Subject: src/pascal - Morpion 1.0.0
  2328. Date: Fri, 3 Dec 1993 17:30:00 +0800
  2329.  
  2330. This is the Pascal source code for Morpion v1.0.0, a simple 
  2331. solitaire game, initially designed by Henri Lamiraux.  
  2332.  
  2333. The source code contains lots of interesting stuff:
  2334.  
  2335. Demonstrates the usefulness of building library routines (only
  2336.     three of the included source files are particular to Morpion).
  2337. Support for the core AppleEvents
  2338. Support for FMenus which make you menu locations independent
  2339.     of the code that implements them.
  2340. Supports for the TextToSpeech Manager.
  2341. Demonstrates OO techniques for implementing windows as objects.
  2342. Code for reading your own Version resource.
  2343. And lots of useful general purpose routines.
  2344.  
  2345. You can use this source code for any non-commercial purpose.
  2346.  
  2347. Hope it is useful to someone,
  2348.    Peter. <peter.lewis@info.curtin.edu.au>
  2349.  
  2350. Morpion v1.0.0 Copyright 1993 Peter N Lewis 
  2351.  
  2352.  
  2353. #### BINHEX     mouse-broken-101-c.hqx   ****
  2354.  
  2355. From: f8dy@netaxs.com (Mark Pilgrim)
  2356. Subject: Mousebroken 1.0.1 (source code)
  2357. Date: Tue, 7 Dec 1993 00:16:40 -0500 (EST)
  2358.  
  2359. Mousebroken is a control panel which will give you greater control over your
  2360. mouse (or less control, depending on how you look at it).  It comes with 13
  2361. mouse modules, each designed to alter your mouse's behavior in a different
  2362. way.  New mouse modules can easily be designed and added to Mousebroken.  The
  2363. mouse modules in this archive are public domain; feel free to design your own!
  2364.  
  2365. The Mousebroken control panel is free and is distributed under the GNU
  2366. General Public License.  This archive contains complete THINK C 6.0.1 source
  2367. code and project files for the control panel.  This archive also contains
  2368. source code to 13 sample mouse modules and a blank module prototype (quite
  2369. well commented, too); these modules are public domain.  If you do not have FTP
  2370. access, e-mail the author for a copy of the control panel, the source code, or
  2371. a list of other programs by the same author.  The address is f8dy@netaxs.com.
  2372.  
  2373. Version 1.0.1 fixes a bug that caused the error dialog box to be displayed
  2374. incorrectly on black & white Macs.  This version of the control panel should
  2375. work on any Macintosh, under either system 6 or 7.  Some individual mouse
  2376. modules may have problems on systems with multiple monitors.  Please report
  2377. any bugs/comments/suggestions to f8dy@netaxs.com.
  2378.  
  2379. This code demonstrates the in's and out's of writing a control panel,
  2380. advanced file maintenance, INIT installation, preference file maintenance,
  2381. notification through the Notification Manager, VBL installation and removal,
  2382. and the correct way to access Quickdraw globals in a control panel.
  2383.  
  2384. Mousebroken 1.0.1 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  2385.  
  2386.  
  2387. #### TEXT       mpw-tool-appleevents-c.txt   ****
  2388.  
  2389. From: keith@taligent.com (Keith Rollin)
  2390. Subject: Re: Need sample code of MPW tool using Apple Events
  2391. Date: Fri, 18 Sep 1992 01:50:18 GMT
  2392.  
  2393. In article <1992Sep17.181819.23018@oakhill.sps.mot.com>,
  2394. tomc@oakhill.sps.mot.com (Tom Cunningham) wrote:
  2395. > Does anyone have some code for an MPW tool using Apple Events that
  2396. > they could send me?  In particular, I want to communicate with the
  2397. > Tool Server (e.g. run a script) via Apple Events from within an MPW
  2398. > tool.  Thanks.
  2399.  
  2400. I used the following in a tool I wrote to kill and restart the Finder. This
  2401. was in the hopes that shutting down the Finder would help speed up my long
  2402. compiles (it didn't). Remember that you have to have one of the MPW Shells
  2403. that comes with its High-Level Event Aware bit set:
  2404.  
  2405. void KillFinder()
  2406. {
  2407.  
  2408. #### BINHEX     msg-12-demo-c.hqx   ****
  2409.  
  2410. From: f8dy@netaxs.netaxs.com (Mark Pilgrim)
  2411. Subject: MSG Demo 1.2 (source code)
  2412. Date: Thu, 11 Nov 1993 12:30:16 -0500 (EST)
  2413.  
  2414. MSG Demo is a collection of graphic effects for putting a picture
  2415. onto the screen (into a window).  The collection started in Feb.
  2416. 1992 and has since grown to include 32 different effects, including
  2417. 8 scrolling effects.  This is the complete THINK C 6.0.1 project and
  2418. source code, distributed under the GNU General Public License.  You
  2419. may freely modify this source code and re-release it under the GNU
  2420. licensing terms; read the enclosed file "GNU General Public License"
  2421. for details.
  2422.  
  2423. The graphic effects themselves have been updated, based on comments
  2424. received from earlier versions.  They now do not rely on application
  2425. globals or external #defines. The rest of the code in this archive
  2426. demonstrates basics of apple events, menus, windows, offscreen bitmaps,
  2427. dialogs, asynchronous and synchronous sounds, hierarchical menus,
  2428. using a preferences file, using timing loops to run the same speed on
  2429. all Macintoshes, and general event handling.
  2430.  
  2431. MSG Demo 1.2 (demo application) has been uploaded to the archives.  If
  2432. you can not find it or do not have ftp access, e-mail the primary
  2433. author at f8dy@netaxs.com (Mark Pilgrim).  You may also e-mail bugs,
  2434. comments, and/or suggestions to that same address.
  2435.  
  2436. Some of the source files contained in this archive are copyright
  2437. (C) 1992-3 Dave Blumenthal.  The rest are copyright (C) 1992-3 Mark
  2438. Pilgrim.
  2439.  
  2440.  
  2441. #### BINHEX     msg-demo-10.hqx   ****
  2442.  
  2443. From f8dy@netaxs.com Thu Aug 26 12:14:56 1993
  2444. From: f8dy@netaxs.com
  2445. Subject: MSG Demo 1.0 (graphics demo)
  2446. Date: Thu, 26 Aug 1993 08:17:36 -0400 (EDT)
  2447.  
  2448. MSG Demo is a collection of graphic effects for putting a picture
  2449. onto the screen (into a window).  The collection started in Feb.
  2450. 1992 and has since grown to include 32 different effects, including
  2451. 8 scrolling effects.  Source for each effect is available and will
  2452. be uploaded to sumex-aim in a separate file.  (This file is only
  2453. the demo application which contains all 32 effects and 2 pictures.)
  2454.  
  2455. MSG Demo 1.0 is free; there is no shareware fee.  It should run
  2456. on any Mac, system 6 or 7.  Please report bugs/comments/suggestions
  2457. to the primary author at f8dy@netaxs.com (Mark Pilgrim).
  2458.  
  2459. MSG Demo 1.0 is copyright (C) 1992-3 Mark Pilgrim & Dave Blumenthal,
  2460. MerriMac Software Group.
  2461.  
  2462. Share and enjoy.
  2463.  
  2464.  
  2465. #### BINHEX     msg-demo-source.hqx   ****
  2466.  
  2467. From f8dy@netaxs.com Thu Sep  9 23:53:12 1993
  2468. From: f8dy@netaxs.com
  2469. Subject: MSG Demo source (2nd try) 
  2470. Date: Wed, 8 Sep 1993 12:30:12 -0400 (EDT) 
  2471.  
  2472. MSG Demo is a collection of graphic effects for putting a picture
  2473. onto the screen (into a window).  The collection started in Feb.
  2474. 1992 and has since grown to include 32 different effects, including
  2475. 8 scrolling effects.  This file contains commented C source code for
  2476. each effect, as well as usage notes and other necessary files.  It
  2477. does _not_ contain source for the entire demo application, only the
  2478. graphic effects themselves.  The rest is up to you. (:
  2479.  
  2480. This is a re-upload, because it has been brought to my attention that
  2481. the first time I uploaded this, I failed to include three of the
  2482. necessary files that each effect uses.  Sorry about that.  [To the
  2483. archivists: this archive completely supercedes the previous source
  2484. upload, which is /dev/src/msg-graphic-effects-c.hqx or something
  2485. similar in the sumex-aim archives.]
  2486.  
  2487. MSG Demo 1.0 (demo application) has been uploaded to sumex-aim.  If
  2488. you can not find it or do not have ftp access, e-mail the primary
  2489. author at f8dy@netaxs.com (Mark Pilgrim).  You may also e-mail bugs,
  2490. comments, and/or suggestions to that same address.
  2491.  
  2492. Some of the source files contained in this archive are copyright
  2493. (C) 1992-3 Dave Blumenthal.  The rest are copyright (C) 1992-3 Mark
  2494. Pilgrim.  You may freely use these source files in your own non-
  2495. commerical applications.  See the individual copyright notices in each
  2496. source file for details.
  2497.  
  2498. Share and enjoy.
  2499.  
  2500.  
  2501.  
  2502. #### BINHEX     msg-graphic-effects-10-c.hqx   ****
  2503.  
  2504. From f8dy@netaxs.com Tue Aug 24 18:03:34 1993
  2505. From: f8dy@netaxs.com
  2506. Subject: MSG Demo 1.0 source code
  2507. Date: Mon, 23 Aug 1993 21:00:48 -0400 (EDT)
  2508.  
  2509. MSG Demo is a collection of graphic effects for putting a picture
  2510. onto the screen (into a window).  The collection started in Feb.
  2511. 1992 and has since grown to include 32 different effects, including
  2512. 8 scrolling effects.  This file contains commented C source code for
  2513. each effect, as well as usage notes and other necessary files.  It
  2514. does _not_ contain source for the entire demo application, only the
  2515. graphic effects themselves.  The rest is up to you. (:
  2516.  
  2517. MSG Demo 1.0 (demo application) has been uploaded to sumex-aim.  If
  2518. you can not find it or do not have ftp access, e-mail the primary
  2519. author at f8dy@netaxs.com (Mark Pilgrim).  You may also e-mail bugs,
  2520. comments, and/or suggestions to that same address.
  2521.  
  2522. Some of the source files contained in this archive are copyright
  2523. (C) 1992-3 Dave Blumenthal.  The rest are copyright (C) 1992-3 Mark
  2524. Pilgrim.  Feel free to use these source files in your own non-
  2525. commerical applications, but read the individual copyright notices in
  2526. each source file for details.
  2527.  
  2528. Share and enjoy.
  2529.  
  2530.  
  2531. #### BINHEX     multisession-104-c.hqx   ****
  2532.  
  2533. Date: Sat, 2 Oct 93 20:56:59 -0500
  2534. From: tomlaw@yar.cs.wisc.edu (Thomas R. Lawrence)
  2535. Subject: MultiSession 1.04 source code
  2536.  
  2537.  
  2538. Wow.  Source code to MultiSession.
  2539.  
  2540. PLEASE send all mail to tomlaw@world.std.com!
  2541.  
  2542.  
  2543. #### BINHEX     myenv-notify-c.hqx   ****
  2544.  
  2545. Date: Wed, 3 Nov 93 11:35:47 -0600
  2546. From: oleg@ponder.csci.unt.edu (Kiselyov Oleg)
  2547. Subject: myenv-notify.cpt: "Standard" progr env for C/C++ (source)
  2548.  
  2549.  
  2550. What: minimal minimal "standard" programming environment for Think C/C++
  2551. Highlights: posting synchronous _and_ asynchronous notifications,
  2552.         displaying messages: like crossbreed printf & DebugStr, but
  2553.         works without MacsBug loaded!, simple error-handling
  2554. Note: _commented_ source code
  2555. Note: The environment is used in the programs I post next.
  2556. System: System 7, Think C/C++ version 6.0 (but worked for 5.0, too)
  2557. Contents:
  2558.     myenv.h        Declaration of functions, macros, and constants
  2559.     myenv.cc    Implementation source code
  2560.     vmyenv.cc    Validation routine that checks that everything works
  2561.     notify.cc    Source for posting notifications
  2562. Comments to: oleg@ponder.csci.unt.edu, oleg@unt.edu
  2563.  
  2564. Explanation:
  2565. notify.c: The set of functions lets a (possibly, background) application post 
  2566. synchronous or asynchronous notification messages to the user.
  2567. Synchronous posting means that the posting function does not return until
  2568. the notification message is displayed and the user dismisses it.
  2569. In asynchronous mode, the posting function returns as soon as the
  2570. message is queued into the notification queue (but not yet displayed!).
  2571. The functions use the Notification Manager and the EventManager (via
  2572. function sleep() defined elsewhere in the standard env to relinquish 
  2573. the CPU control while sleeping). Circular queue is used to store
  2574. asynchronous notification requests.
  2575.  
  2576. ------------------------------------------------------------------------
  2577.  
  2578. #### BINHEX     nih-image-149-c.hqx   ****
  2579.  
  2580. From: salzman@Athena.MIT.EDU
  2581. Date: Wed, 31 Mar 93 21:57:15 -0500 
  2582. Subject: NIH-Image.149_source.hqx (8600 lines = 558907 bytes) 
  2583.  
  2584.  
  2585. #### BINHEX     nuntius-11-c.hqx   ****
  2586.  
  2587. Date: Mon, 6 Jul 92 15:41:20 +0200 
  2588. From: speck@ruc.dk (Peter Speck)
  2589. Subject: Nuntius1.1.src.sea.hqx 
  2590.  
  2591. *** SOURCE to: ***
  2592.  
  2593. Final version of Nuntius 1.1:
  2594.   Newsreader, requires system 7, and ~1200K.
  2595.   Written with MacApp3, C++ and the thread pkg from "d e v e l o p".
  2596.  
  2597. No documentation is available.
  2598.  
  2599. Report bugs etc to speck@dat.ruc.dk, not speck@frederik.ruc.dk
  2600.  
  2601. Some people have trouble with editing articles when they use
  2602. another editor besides TeachText. I'm working on this bug.
  2603.  
  2604. Peter Speck, speck@dat.ruc.dk
  2605.  
  2606.  
  2607.  
  2608. #### TEXT       open-selection-pas.txt   ****
  2609.  
  2610. From: mxmora@unix.sri.com (Matthew Xavier Mora)
  2611. Subject: OpenSelection Code (pascal source) 
  2612. Date: 11 Sep 92 17:11:08 GMT 
  2613.  
  2614.  
  2615. Here's the code to have the finder open a control panel.
  2616. Just pass the control panel's fsspec to the openselection
  2617. function and it should open it. Actually I think it will
  2618. open any valid fsspec but I wouldn't bet on it. I haven't
  2619. stressed this code so there are probably some bugs in it.
  2620.  
  2621. Matt
  2622.  
  2623. --------------------------------------------
  2624. { OpenSelection.p ported by Matthew Xavier Mora} 
  2625. { ported from C.K. Han's openselection.c code  }
  2626. { 09-11-92                                     }
  2627.  
  2628. unit openSelection; 
  2629. interface
  2630.  
  2631. #### TEXT       path-from-fsspec-pas.txt   ****
  2632.  
  2633. From: mxmora@unix.sri.com (Matthew Xavier Mora)
  2634. Subject: PathName from FSSpec (pascal code) 
  2635. Date: 9 Sep 92 00:21:34 GMT 
  2636.  
  2637. I spent the long weekend cursing at the AppleEventManager
  2638. trying to get the finder to open a control panel. Anyway,
  2639. one of the things I discoverd was that the alias manager will
  2640. give you a path name if you ask for it. Since my program needed to
  2641. display the path name, I wrote a function that will return a full
  2642. path name in a handle (not in a str255 so you it won't crash with long 
  2643. path names) when you give it a fsspec. 
  2644.  
  2645. I also figured out how to get the finder to open a control panel.
  2646. You need to send an open selection event. I finally found an example that
  2647. worked and ported it to pascal. If you would like to see that code I can
  2648. post it here also. Its a direct copy of C.K Han's C code that is on the 
  2649. developers CD.
  2650.  
  2651. Here is the code:
  2652.  
  2653.  
  2654. #### BINHEX     peek-a-boo-112-ad-c.hqx   ****
  2655.  
  2656. From: joe@clipper.cb.att.com
  2657. Date: Thu, 28 Oct 93 21:46:32 EDT
  2658. Subject: PeekaBoo AD module 1.1.2
  2659.  
  2660.  
  2661.     Macfolks,
  2662.  
  2663.     PeekABoo version 1.1.2 AfterDark(tm) screensaver module.
  2664.     This version will run under Multimodule and Randomizer !!
  2665.  
  2666.     For those already with version 1.1.1, I'm submitting a patch
  2667.     to update that version. Download the patch instead - it's 
  2668.     smaller :) 
  2669.  
  2670.     Source code is included. This is FREE. Requires Color Quickdraw
  2671.     (+ System 7 ??) because it uses offscreen graphics worlds.
  2672.  
  2673.  
  2674.         - joe
  2675.     
  2676.  
  2677. #### BINHEX     pentominoes-141-c.hqx   ****
  2678.  
  2679. From: f8dy@netaxs.com (Mark Pilgrim)
  2680. Subject: Pentominoes 1.4.1 (source code)
  2681. Date: Thu, 9 Dec 1993 23:16:02 -0500 (EST)
  2682.  
  2683. Pentominoes is a board game where you must fit 12 pieces (of five squares
  2684. each) into a variety of boards. Pieces may be rotated or flipped, but may
  2685. not overlap each other.  A great geometric puzzler that goes back 40 years!
  2686.  
  2687. Pentominoes is distributed under the GNU General Public License; this archive
  2688. contains complete THINK C 6.0.1 source code for the Pentominoes application,
  2689. as well as complete source code for an external application used to set up
  2690. Pentominoes' self-integrity checker.  You may freely redistribute this package
  2691. as a whole; you may freely modify this application and re-distribute it under
  2692. the GNU General Public License.  See the file "GNU General Public License" in
  2693. this archive for details.
  2694.  
  2695. This code handles, among other things, events, menus, apple events, a prefs
  2696. file, Gestalt environment checking, asynchronous sounds, hierarchical menus,
  2697. dialogs, windows, off-screen bitmaps, file management, standard file dialogs,
  2698. the correct use of ReleaseResource instead of DisposeHandle (27 instances),
  2699. and the soon-to-be-famous "cough to continue" modal dialog filter proc.  None
  2700. of this is very well commented, but feel free to direct any questions to
  2701. f8dy@netaxs.com.
  2702.  
  2703. Pentominoes 1.4.1 is copyright 1993 by Mark Pilgrim, MerriMac Software Group.
  2704.  
  2705.  
  2706. #### TEXT       preferences-c.txt   ****
  2707.  
  2708. From: Sproul@sproul.sproul.com (Mark Sproul)
  2709. Subject: Prefs file source code (C - long)
  2710. Date: 2 Oct 92 09:05:30 GMT
  2711.  
  2712.  
  2713. Several people asked for this source code.  As explained in the comments,
  2714. it came from Inside Mac Comm Toolbox and there is a lot of code dealing
  2715. just with the Comm Tool box setup.  It now handles the PREFERENCES
  2716. folder in the system folder properly.
  2717.  
  2718. I have done some additions to the code to make it more general and
  2719. usable as far as dealing with preferences.  Such as GET pref and SET
  2720. pref.  This code was all written and runs correctly with Think C 5.0.
  2721.  
  2722. Its been several months since I wrote this and was looking at it.
  2723. I may have forgotten to mention something, if you have any problems
  2724. let me know and I will post updates.
  2725.  
  2726. You need to define some things such as this:
  2727.  
  2728.  
  2729. #### BINHEX     pro-tracker-asm.hqx   ****
  2730.  
  2731. From "jamal@gnu.ai.mit.edu (Jamal Hannah)" Wed Sep  8 03:00:20 1993
  2732. Date: Tue, 7 Sep 93 19:22:59 -0400 
  2733.         
  2734. To: info-mac@SUMEX-AIM.Stanford.EDU
  2735. From: jamal@gnu.ai.mit.edu (Jamal Hannah)
  2736. Subject: ProTracker-source.sit.hqx 
  2737. Resent-To: backmod
  2738. Resent-Date: Wed, 8 Sep 1993 1:45:56 PDT
  2739. Resent-From: Info-Mac Moderator <macmod@camis.Stanford.EDU>
  2740.  
  2741.  
  2742.  
  2743. --========================_6712356==_
  2744. Content-Type: text/plain; charset="us-ascii"
  2745.  
  2746. Please place this file on the info-mac FTP site, either in a source code
  2747. directory, or in info-mac/snd/util (or a directory for sound and music
  2748. format documentation).
  2749.  
  2750. -------
  2751. This is the 68000 assembler source code for the Amiga music sequencing/sound
  2752. track editor called "ProTracker", the source and images for versions 1.2 and
  2753. 2.0 are included.  Hopefully it will help Macintosh programmers achive a better
  2754. understanding of the "MOD" Music file format that ProTracker uses, as well as
  2755. give ideas about writing sound track software.
  2756.  
  2757. The origional (LHARC) archive was found on FTP site wuarchive.wustl.edu in the
  2758. "aminet" section. (/systems/amiga/aminet/mus/edit/ptsource.lzh)
  2759.  
  2760.   - Jamal Hannah <jamal@gnu.ai.mit.edu>, 9/7/93
  2761.  
  2762.  
  2763.  
  2764. --========================_6712356==_
  2765. Content-Type: application/mac-binhex40; name="ProTracker-source.sit"
  2766.  
  2767.  
  2768. #### BINHEX     rebuild-projects-11-as.hqx   ****
  2769.  
  2770. From: malldrit@sfu.ca
  2771. Subject: Rebuild Projects - THINK C Development Script
  2772. Date: Thu, 23 Dec 1993 13:56:14 -0800
  2773.  
  2774.  
  2775. Rebuild Projects v1.1
  2776. by Mark Alldritt
  2777. author of Script Tools & Monitor
  2778.  
  2779. Rebuild Projects is a AppleScript script which is usefull if you use
  2780. THINK C 6.0.1+ to develop software involving a number of seperate THINK C
  2781. project files.  Rebuild Projects uses a parameter file to govern the order
  2782. and type of operations performed during the build process.
  2783.  
  2784. The parameter file can direct Rebuild Projects to compile certain projects,
  2785. move files, and empty folders.  Additionally, the script is simple enough
  2786. (less than 150 lines) that you can add your own verbs to the parameter file
  2787. syntax to extend the script into areas you might find usefull.
  2788.  
  2789. Rebuild Projects requires AppleScript 1.0 or later, and Script Tools 1.3
  2790. or later.  Script Tools is available from the Info-Mac archives and other
  2791. sites.
  2792.  
  2793. Package Contents:
  2794.  
  2795.     Rebuild Projects
  2796.     Read Me First (this text)
  2797.     Example Param File
  2798.     
  2799. Rebuild Project is freeware.  There are no restritions on use or
  2800. distribution.
  2801.  
  2802.  
  2803. #### BINHEX     sample-ldefs.hqx   ****
  2804.  
  2805. From: <fprefect@engin.umich.edu>
  2806. Date: Tue, 16 Nov 93 00:26:55 -0500
  2807. Subject: Sample LDEFs and Source
  2808.  
  2809. Sample LDEFs with source (for programmers) -
  2810.  
  2811.         * SICN LDEF - Steve Falkenberg, MacDTS
  2812.         * Sys7 Icon LDEF, Sys6/7 Icon LDEF, Indenting LDEF - Me
  2813.  
  2814.     These LDEF's were written as experiments into new formats for 
  2815.     displaying data. I think the Icon LDEF's are useful for use in a
  2816.     MS Word-like prefs box, and the others have neat uses too.
  2817.     
  2818.     The commenting is minimal, but so is the functionality in an LDEF.
  2819.     I think that examination should reveal what you need to know. Use
  2820.     the LDEF source to write your own, or just use the compiled resources
  2821.     for your app.
  2822.     
  2823.     The only thing I could ask is that you post, or at least send me,
  2824.     any LDEFs you make based on this. I dont need recognition or cash...
  2825.     cuz I didnt write em for that. 
  2826.     
  2827. Share and Enjoy...
  2828. Matt Slot, fprefect@umich.edu
  2829.  
  2830.  
  2831.  
  2832. #### BINHEX     seer.hqx   ****
  2833.  
  2834. Date: Wed, 20 Oct 1993 14:15:21 -0400 (EDT)
  2835. From: Aaron Wohl <aw0g+@andrew.cmu.edu>
  2836. Subject: seer / localtalk / records all packets
  2837.  
  2838. Seer records all packets on localtalk.  It is not
  2839. 32 bit clean.   Source and object code is supplied.
  2840.  
  2841. The code is really bad but it works.
  2842. by Aaron Wohl, aw0g+@andrew.cmu.edu
  2843.  
  2844. For a much better example of how to write an
  2845. INIT/CDEV/DRVR see softkiss by the same author.
  2846.  
  2847.  
  2848. #### BINHEX     sf-get-folder-p-pas.hqx   ****
  2849.  
  2850. Date: Mon, 11 Jan 1993 13:51:59 +0800 
  2851. From: Peter N Lewis <peter@cujo.curtin.edu.au>
  2852. Subject: /source/pascal/SFGetFolderP.hqx 
  2853.  
  2854.  
  2855. SFGetFolderP, Pascal version
  2856.  
  2857. This is a pascal version of  Ken Kirksey's <kkirksey1@aol.com>, 
  2858. SFGetFolder, which allows the user to select a folder following 
  2859. Apple's HI guidelines.
  2860.  
  2861. I'm not the author, I just converted it to Pascal.  The 
  2862. documentation is unchanged from Ken's, but I'm sure you can figure
  2863. it out.
  2864.  
  2865. Have Fun,
  2866.    Peter. <peter@cujo.curtin.edu.au>
  2867.  
  2868.  
  2869. #### BINHEX     shutdown-fade-10-c.hqx   ****
  2870.  
  2871. From: f8dy@netaxs.netaxs.com (Mark Pilgrim)
  2872. Subject: Shutdown Fade 1.0 (source code)
  2873. Date: Fri, 19 Nov 1993 14:48:22 -0500 (EST)
  2874.  
  2875. Shutdown Fade will cause your Macintosh to fade all attached screens to black
  2876. every time it shuts down.  This INIT is free and is distributed under the GNU
  2877. General Public License; this archive contains complete THINK C 6.0.1 source
  2878. code and project files for the INIT.  If you do not have FTP access, e-mail
  2879. the author for a copy of the INIT, the source code, or a list of other
  2880. programs by the same author.  The address is f8dy@netaxs.com.
  2881.  
  2882. This code demonstrates the basics of INIT initialization and loading, 
  2883. shutdown procedures, and advanced gamma work. This code will only work on
  2884. monitors with gamma -- the Mac II line, and any color Mac with a non-built-in
  2885. monitor.  (It has not been tested on a Color Classic; if anyone has one and
  2886. feels like testing, please let me know if it works.)  Please report any
  2887. bugs/comments/suggestions to f8dy@netaxs.com.
  2888.  
  2889. Shutdown Fade 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  2890.  
  2891.  
  2892. #### BINHEX     shutdown-fx-11-c.hqx   ****
  2893.  
  2894. From: f8dy@netaxs.netaxs.com (Mark Pilgrim)
  2895. Subject: Shutdown FX 1.1 (source code)
  2896. Date: Sun, 24 Oct 1993 22:17:25 -0400 (EDT)
  2897.  
  2898. Shutdown FX is a simple INIT which will, at shutdown, clear the Mac
  2899. screen with an interesting graphic effect.  It picks randomly from 8
  2900. of the effects that are included in MSG Demo.  (Note that the MSG Demo
  2901. is NOT required to use Shutdown FX.  This INIT will work on its own; it
  2902. just reuses some of the same code as MSG Demo.)
  2903.  
  2904. Shutdown FX should work on any Macintosh under any system.  The only
  2905. known flaw is that on systems with multiple monitors, only the main
  2906. monitor (the one with the menu bar) is cleared; all other monitors
  2907. are left untouched.  If you find any other bugs, or if you have any
  2908. comments, please e-mail the author at f8dy@netaxs.com (Mark Pilgrim).
  2909.  
  2910. Version 1.1 fixes a bug when shutting down with applications still
  2911. running.  (Sometimes only part of the screen was wiped to black.)
  2912.  
  2913. THIS ARCHIVE CONTAINS COMPLETE THINK C 6.0 SOURCE CODE.  The INIT
  2914. itself is available from sumex-aim.stanford.edu, or e-mail the author
  2915. requesting a copy.  This source code is free for non-commercial use,
  2916. but please read the notice in each file for details.
  2917.  
  2918. Shutdown FX is copyright 1993 by Mark Pilgrim, MerriMac Software Group.
  2919.  
  2920.  
  2921. #### BINHEX     shutdown-fx-12-c.hqx   ****
  2922.  
  2923. From: f8dy@netaxs.com (Mark Pilgrim)
  2924. Subject: Shutdown FX 1.2 (source code) 
  2925. Date: Sat, 13 Nov 1993 23:31:50 -0500 (EST) 
  2926.  
  2927. Shutdown FX will cause your Macintosh to clear the screen with a cool
  2928. graphic effect every time it shuts down.  This INIT is free and is distributed
  2929. under the GNU General Public License; this archive contains complete THINK C
  2930. 6.0.1 source code and project files for the INIT.  If you do not have FTP
  2931. access, e-mail the author for a copy of the INIT, the source code, or a list
  2932. of other programs by the same author.  The address is f8dy@netaxs.com.
  2933.  
  2934. This code demonstrates the basics of INIT initialization and loading, 
  2935. shutdown procedures, and basic graphics work. This code should work under
  2936. any system, with any monitor, on all Macintoshes.  Please report any
  2937. bugs/comments/suggestions to f8dy@netaxs.com.
  2938.  
  2939. Shutdown FX 1.2 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  2940.  
  2941.  
  2942. #### BINHEX     shutdown-fx-13-c.hqx   ****
  2943.  
  2944. From: f8dy@netaxs.com (Mark Pilgrim)
  2945. Subject: Shutdown FX 1.3 (source code)
  2946. Date: Tue, 14 Dec 1993 03:34:30 -0500 (EST)
  2947.  
  2948. Shutdown FX will cause your Macintosh to clear the screen with a cool
  2949. graphic effect every time it shuts down.  This INIT is free and is distributed
  2950. under the GNU General Public License; this archive contains complete THINK C
  2951. source code and project files for the INIT.  If you do not have FTP access,
  2952. e-mail the author for a copy of the INIT, the source code, or a list of other
  2953. programs by the same author.  The address is f8dy@netaxs.com.
  2954.  
  2955. This archive contains both THINK C 5 and THINK C 6 project files.  Use
  2956. whichever one you wish and throw away the other.
  2957.  
  2958. This code demonstrates the basics of INIT initialization and loading, 
  2959. shutdown procedures, and basic graphics work. This code should work under
  2960. any system, with any monitor, on all Macintoshes.  Please report any
  2961. bugs/comments/suggestions to f8dy@netaxs.com.
  2962.  
  2963. Shutdown FX 1.3 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  2964.  
  2965.  
  2966. #### TEXT       simplify-list-manager-pas.txt   ****
  2967.  
  2968. From: kurisuto@BACH.UDEL.EDU ("Sean J. Crist")
  2969. Subject: More free code: Simplifying the List Manager 
  2970. Date: 18 Sep 92 03:33:13 GMT 
  2971.  
  2972.  
  2973.      The following code, once again, is nothing particularly glamorous; it
  2974. simply makes it easier to use the List Manager to create and manage lists
  2975. of strings.  One of the most common uses for the List Manager is
  2976. scrollable, one-dimensional, fixed-size
  2977. lists of strings (as in SFGetFile, SFPutFile).  The List Manager is good
  2978. for creating all kinds of lists (such as lists of icons), but a lot of
  2979. this functionality is a hassle for programmers who only need a simple list
  2980. of strings.
  2981.      The code below allows you create and dispose of lists of strings.  It
  2982. allows you to add, rename, and remove elements in the list, and handles
  2983. mouse clicks and update events.  It also keeps the lists in alphabetical
  2984. order.
  2985.      I remember having a lot of trouble learning how to call the List
  2986. Manager properly; I hope that this code helps somebody else.
  2987.  
  2988.  
  2989. #### TEXT       sitcomm-login-as.txt   ****
  2990.  
  2991. From: harrym@netcom.com (Harry Myhre)
  2992. Subject: SITcomm AppleScript
  2993. Date: Tue, 7 Dec 1993 18:13:15 -0800 (PST)
  2994.  
  2995. Language: AppleScript 1.0
  2996. Author: Harry Myhre <harrym@netcom.com>
  2997. Date Written: Tue, Dec 7, 1993
  2998. Purpose: Start SITcomm, logon to Netcom, get into dl directory, 
  2999.             ask user what to do next.
  3000.  
  3001. tell application "SITcomm"
  3002.     activate
  3003.     Connect "Netcom" -- dial into Netcom
  3004.     Wait For Text "etcom" -- last part of command prompt
  3005.     Send Text "go ~" -- first, go to home dir
  3006.     Send Text return
  3007.     Send Text "go dl" -- go to my download dir
  3008.     Send Text return
  3009. end tell
  3010.  
  3011.  
  3012. #### TEXT       skim-c.txt   ****
  3013.  
  3014. Date: Thu, 25 Nov 93 18:06:58 +1300
  3015. From: Craig Nevill-Manning <cgn@kauri.cs.waikato.ac.nz>
  3016. Subject: Update on info-mac uploads browser
  3017.  
  3018. This is a new version of skim.c, a C program to ease the process of  
  3019. downloading programs listed in the info-mac digest.
  3020.  
  3021. The latest modifications allow the site to be changed to a mirror site, and  
  3022. the directory accordingly. Thanks to Robert Watkins (bob@nutmeg.cs.ntu.edu.au)  
  3023. for these additions!
  3024.  
  3025. -------------------------- CUT HERE ------------------------------------------
  3026.  
  3027. /* To compile this program, first modify the #defines. You have to choose the
  3028.    local directory to be used and to set your e-mail address.
  3029.    You'll also have to add the directory to look into at the mirror site
  3030.  
  3031.    Then compile with cc -o skim skim.c -lcurses -ltermcap 
  3032.  
  3033.  
  3034.  
  3035. #### BINHEX     sleep-deprivation-10-c.hqx   ****
  3036.  
  3037. From: f8dy@netaxs.netaxs.com (Mark Pilgrim)
  3038. Subject: Sleep Deprivation 1.0 (source code) 
  3039. Date: Sat, 13 Nov 1993 02:26:02 -0500 (EST) 
  3040.  
  3041. Sleep Deprivation is a fun little INIT which will clear the screen with
  3042. a cool graphic effect every time your Macintosh goes to sleep.  Of course,
  3043. this means you have to have a Mac which can go to sleep, like a Powerbook
  3044. or a Duo or the like.  If you do, just slip this INIT in your system
  3045. folder and restart.  8 effects in all.
  3046.  
  3047. This INIT is free and is distributed under the GNU General Public License.
  3048. You may modify this code and rerelease it under the terms of the GNU
  3049. General Public License; read the file "GNU General Public License" in this
  3050. archive for details.
  3051.  
  3052. This archive contains complete THINK C 6.0.1 source code and project
  3053. files.  If you do not have FTP access, e-mail the author requesting a
  3054. copy of the INIT, the source code, or a list of other programs by the
  3055. same author.  The address is f8dy@netaxs.com.  You may report bugs,
  3056. suggestions, comments, etc. to the same address.
  3057.  
  3058. Sleep Deprivation 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group
  3059.  
  3060.  
  3061. #### BINHEX     sound-at-random-c.hqx   ****
  3062.  
  3063. Date: Wed, 3 Nov 93 11:42:50 -0600
  3064. From: oleg@ponder.csci.unt.edu (Kiselyov Oleg)
  3065. Subject: sound-at-random.cpt - (source & bin) pick a sound at random and yell it
  3066.  
  3067.  
  3068. What: pick a sound at random and play it
  3069. Language: Symantec C++ 6.0
  3070. Note: Good (I hope) example of treating File and Drive managers as C++ objects
  3071. Note: Good as a startup program.
  3072. Note: needs standard environment, see myenv-notify.cpt
  3073. Note: sounds themselves are _not_ included, get your own
  3074. System: System 7.x, 32-bit clean
  3075. Contents:
  3076.     RandomSound.cc    - source code (commented)
  3077.     vRandomSound.cc - verification program
  3078.     RandomSound.pi    - Symantec C++ project
  3079.     RandomSound    - application itself. 32-bit clean, System 7
  3080. Comments to: oleg@ponder.csci.unt.edu, oleg@unt.edu
  3081.  
  3082. Explanation:
  3083. This is a whimsy set of functions that lets one play a sound
  3084. picked at random from the sound folder. The sound folder is
  3085. assumed to be a folder named "Sounds" in the System folder.
  3086. [Note, reading STR resource mentioned in the comments is not implemented yet]
  3087.  
  3088. ------------------------------------------------------------------------
  3089.  
  3090. #### BINHEX     speech-manager-explorer.hqx   ****
  3091.  
  3092. From: Alexander W. Kourakos <kourakos@cardinal.ncsc.org>
  3093. Subject: source/c - Speech Manager demo program
  3094. Date: Wed, 18 Aug 93 13:09:18 EDT
  3095. Organization: North Carolina Supercomputing Center
  3096.  
  3097.    This is a quick little program I hacked together the day I FTP'd
  3098. the Speech Manager. Lets you play with voices, set pitch and rate,
  3099. etc. Written in THINK C 6.0.
  3100.  
  3101.    Archived with StuffIt. Should work on any Mac that can use the
  3102. Speech Manager.
  3103.  
  3104. ----------------------
  3105.  
  3106. #### BINHEX     speech-unit-p.hqx   ****
  3107.  
  3108. From "PAUL M SHELDON <psheldon@utdallas.edu>" Thu Sep  2 10:50:08 1993
  3109. Date: Thu, 2 Sep 1993 10:23:13 -0500
  3110. From: PAUL M SHELDON <psheldon@utdallas.edu>
  3111. Subject: my speech object (5 hours small unit, I'm getting better)
  3112.  
  3113. --1426085571-978700603-746985779:#3021
  3114. Content-Type: TEXT/PLAIN; charset=US-ASCII
  3115.  
  3116.     I didn't have help in c translation to pascal from the kid I mentor, PJ
  3117. Traue, this time, so there are definite guesses in pascal meaning of c. 
  3118.     In this archived submission are four mpw text files. I have
  3119. included interface and implementation of the speech unit, my old code segment
  3120. that doesn't use the unit and a new code segment which does.
  3121.     I noted that the new code segment that uses the unit must also have a
  3122. uses speech or it won't know the meaning of a type, SpeechChannel. That's
  3123. odd, since I tried not having uses all the way up the hierarchy of calling
  3124. routines and the object oriented pascal language only caught me there. I am
  3125. curious as to when I can get away with not using uses items; I am curious
  3126. as to how much is, as they say in modula language, hidden import.
  3127.     This speech unit works, but may have mistakes in particular in the
  3128. Gestalt manager call pascal interpretation of the c code written up in the
  3129. apple docviewer document on speech manager. Maybe the kid I mentor will
  3130. correct my translation. Maybe someone out there will. I also have Halts to
  3131. handle os errors. I think that is sort of lame, because I don't insure that
  3132. all objects are free'd with such a handling. Someone more savvy than could
  3133. improve on this, for sure.
  3134.     I did several experiments with the unit. You will see my earlier (working)
  3135. experiments commented out. I wanted to see what a Boris with a Brenda echo
  3136. would sound like. It sounded like an incompetant translator, not like an
  3137. echo. There was a time delay, even when I didn't put it there from the
  3138. speech processing. A very short time for the Brenda echo, but noticeable.
  3139. If you use the same speaker object to speak concurrently, it cuts its own
  3140. speech off after an interceded delay. Evidentally, to have concurrent
  3141. speech, your program must seize a different channel.
  3142. What you can do with this:
  3143.     With this as a unit in  a text editor, you should be able to select
  3144. things you want to have the mac speak. 
  3145.     When you use this unit, you may discover a greater wisdom that I found
  3146. making it and improve upon it. For your courage, before I tried making
  3147. this primative thing, I thought it would take more than twice as long as
  3148. it did. It didn't, even though I was exhausted from other things I did
  3149. that day!
  3150.     With this submission, you can get the feel of a boundary on how
  3151. long it takes pascal procedural code to be turned into a prototype unit
  3152. for an object. 
  3153.  
  3154. --1426085571-978700603-746985779:#3021
  3155. Content-Type: APPLICATION/octet-stream; name="speechunitex.hqx"
  3156. Content-ID: <Pine.3.07.9309021159.A3021@sioux.utdallas.edu>
  3157. Content-Description: 
  3158.  
  3159.  
  3160. #### BINHEX     speedy-mouse-12-c.hqx   ****
  3161.  
  3162. From: f8dy@netaxs.com (Mark Pilgrim)
  3163. Subject: Speedy Mouse 1.2 (source code)
  3164. Date: Sat, 18 Dec 1993 00:13:34 -0500 (EST)
  3165.  
  3166. Speedy Mouse is a fun little INIT which will cause your mouse to move
  3167. twice as fast as it normally does.  This INIT is free and is distributed under
  3168. the GNU General Public License; this archive contains complete THINK C 6.0.1
  3169. source code and project files for the INIT.  If you do not have FTP access,
  3170. e-mail the author for a copy of the INIT, the source code, or a list of other
  3171. programs by the same author.  The address is f8dy@netaxs.com.
  3172.  
  3173. Changes in version 1.2: the mouse no longer bounces off the edge of the
  3174. screen, and the cursor disappears correctly now while you are typing.  Also,
  3175. the mouse will move at normal speed while the caps lock is down.
  3176.  
  3177. This code demonstrates the basics of writing and installing a VBL, and
  3178. manipulating undocumented low-memory globals. I used to say that this code
  3179. would work on any Mac, but that has proved not to be true.  If you have any
  3180. compatibility problems, please report them to me at f8dy@netaxs.com.  Many
  3181. helpful users all over the world have provided feedback that has helped me
  3182. advance Speedy Mouse this far.
  3183.  
  3184. Speedy Mouse 1.2 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  3185.  
  3186.  
  3187. #### BINHEX     spin-cursor-101-c.hqx   ****
  3188.  
  3189. Date: Fri, 11 Sep 92 16:52:32 GMT-0500
  3190. From: rudman@mondo.engin.umich.edu
  3191. Subject: [*] SpinCursor Library 1.01
  3192.  
  3193.  
  3194. NOTICE: This should replace the older version of the library
  3195.  
  3196. This is the SpinCursor library, AGAIN ... UGH.
  3197.  
  3198. Some of you may have already noticed there was no protection against
  3199. installing more than once, and so the cursor jumped all over the place
  3200. before finally dying a horribly yucky death.  I installed a global variable
  3201. called gCursInstalled, and this will fix it; now you can call
  3202. BeginSpinning() and StopSpinning() without worry as to what will happen.
  3203.  
  3204. Some notes for first-time users (read: people unaware of what a VBL task
  3205. can do)
  3206.  
  3207. o  VBL-based spinning cursors will probably continue to spin even after the
  3208.    Macintosh has crashed.  During true Mac crashes, however, the cursor
  3209. will
  3210.    not MOVE anywhere, it will just spin.  Good? Bad? You be the judge.
  3211.  
  3212. o  It would be a nice gesture for you to call StopSpinning() if you receive
  3213.    a suspend event, and then BeginSpinning() (if necessary) when you
  3214. receive
  3215.    the resume event.  Otherwise, you may be "giving the gift of spinning
  3216. love"
  3217.    to other processes; this is defined in the dictionary as "NOT NICE".
  3218.  
  3219. o  Before you allow a user to quit your program, you should issue a
  3220.    StopSpinning() just to be on the safe side.  Otherwise, the VBL will
  3221.    remain in memory, and it will attempt to JMP to a CODE which is no
  3222. longer
  3223.    available. Can we say "crash" boys and girls? I knew you could...
  3224.  
  3225. o  Some people are very, very accute, and they have noticed some small
  3226. flicker
  3227.    in the spinning cursors.  This is because the calls to SetCursor are NOT
  3228.    always called in sync with the actual monitor vertical retrace.  I will
  3229. be
  3230.    working on this; in the mean time, it's just a SMALL flicker, more
  3231. noticeable
  3232.    on machines with nice big 16" screens.
  3233.  
  3234. o  Okay, here's the scoop: SetCursor DOES NOT MOVE MEMORY under these
  3235.    conditions. SetCCursor MIGHT, however. Nobody at Apple was willing to
  3236. try
  3237.    and put a color example into the new Inside Macintosh line of books, so
  3238. I
  3239.    thought OK, I will.  According to someone who sounds like they know, the
  3240.    color cursor call has a 0.1% chance of failing.  I say, Hell...   I lock
  3241.    everything and do the best job I can of keeping things from moving. I
  3242. guess
  3243.    with something as sick as a VBL, anything can happen; but I say it's
  3244. safe.
  3245.  
  3246. If you have any comments, questions, or suggestions, please feel free to
  3247. send me mail personally (no, you don't have to voice your opinions over the
  3248. net  ;)   )
  3249.  
  3250. send to: rudman@engin.umich.edu
  3251.  
  3252. --------------------------------------------------------------------------
  3253. Daniel E. Rudman
  3254. The University of Michigan
  3255. Computer-Aided Engineering Network
  3256. Macintosh Systems Administration
  3257.  
  3258. #### BINHEX     spinning-cursor-c.hqx   ****
  3259.  
  3260. From: casgrain@ERE.UMontreal.CA (Casgrain Philippe)
  3261. Subject: Spinning Cursor Library (code) 
  3262. Date: Fri, 5 Feb 93 13:49:55 EST 
  3263.  
  3264.      This posting contains a library file that allows any 
  3265. program (C, Pascal, Fortran) to install an asynchronous
  3266. (task-independent) spinning cursor.
  3267.      It is blatantly copied from the book "Macintosh Programming
  3268. Secrets, 2nd Edition", and distributed with the author's
  3269. consent.  All I did (!) is type the code.  I can also tell you
  3270. that it works fine ;-).
  3271.  
  3272.      Instructions, source code (Think C) and sample code (Pascal
  3273. and C) are included.  If you have questions, feel free to ask!
  3274.  
  3275.      Philippe Casgrain
  3276.      Casgrain@ERE.UMontreal.CA
  3277.  
  3278. P.S. This is postcard-ware: it is not my intellectual property,
  3279. but if I stick the disk on my fridge, my kids don't see the
  3280. point... :-)
  3281.  
  3282.  
  3283.  
  3284. #### BINHEX     standard-get-folder-10-c.hqx   ****
  3285.  
  3286. From "cklarson@rosarita.engr.ucdavis.edu (Christopher Klaus Larson)" Sun Aug 22 21:58:06 1993
  3287. Date: Sun, 22 Aug 93 15:57:04 PDT
  3288. From: cklarson@rosarita.engr.ucdavis.edu (Christopher Klaus Larson)
  3289. Subject: StandardGetFolder10.cpt.hqx
  3290.  
  3291.  
  3292. StandardGetFolder 1.0 by Chris Larson (cklarson@engr.ucdavis.edu)
  3293.  
  3294. This is the source code for a module which allows a user to select a folder
  3295. via the standard file package. It is more complete and error-free than the
  3296. other samples which perform this function (IMHO).
  3297.  
  3298. Requires THINK C (written with version 6.0) and System 7 or later.
  3299.  
  3300. Examples included.
  3301.  
  3302.  
  3303. #### BINHEX     startup-screen-picker-11-c.hqx   ****
  3304.  
  3305. From: f8dy@netaxs.com (Mark Pilgrim)
  3306. Subject: Startup Screen Picker 1.1 (source code)
  3307. Date: Tue, 14 Dec 1993 19:06:04 -0500 (EST)
  3308.  
  3309. [Sumex moderators: please archive this in /info-mac/dev/src directory.]
  3310.  
  3311. Startup Screen Picker is an INIT which will pick a random startup screen to
  3312. be displayed during at startup, during INIT loading.  This INIT is free and
  3313. is distributed under the GNU General Public License; this archive contains
  3314. complete THINK C 6.0.1 source code and project files for the INIT.  If you
  3315. do not have FTP access, e-mail the author for a copy of the INIT, the source
  3316. code, or a list of other programs by the same author.  The address is
  3317. f8dy@netaxs.com.
  3318.  
  3319. This code demonstrates the basics of INIT writing, file moving (through
  3320. PBCatMove), preference files, and using the Notification Manager.  This code
  3321. should work under any system, with any monitor, on all Macintoshes.  Please
  3322. report any bugs/comments/suggestions to f8dy@netaxs.com.
  3323.  
  3324. Startup Screen Picker 1.1 is copyright 1993, Mark Pilgrim, MerriMac Software
  3325. Group.
  3326.  
  3327.  
  3328. #### BINHEX     std-get-folder-c.hqx   ****
  3329.  
  3330. Date: Sat, 6 Jun 92 21:31:06 CDT 
  3331. From: Kenneth B. Kirksey <kkirksey@eng.auburn.edu>
  3332. Subject: Standard Get Folder C Code 
  3333.  
  3334.  
  3335. The Think C code in this archive implements a custom Standard File Dialog 
  3336. that allows users to select folders in which to save or locate files.  
  3337. All code and resources you need to use StandardGetFolder are included.  Also 
  3338. included is a small sample program (in Think C) demonstrating the use of 
  3339. StandardGetFolder.
  3340.  
  3341. Due to the fact the StandardGetFolder makes use of the CustomGetFile toolbox
  3342. function and FSSpec records, it will only work under Sytem 7.0 or later. 
  3343.  
  3344.  
  3345. #### BINHEX     stoned-mouse-10-c.hqx   ****
  3346.  
  3347. From: f8dy@netaxs.com (Mark Pilgrim)
  3348. Subject: Stoned Mouse 1.0 (source code) 
  3349. Date: Sat, 13 Nov 1993 23:38:48 -0500 (EST) 
  3350.  
  3351. Stoned Mouse is a fun little INIT which will cause your mouse to move
  3352. discretely instead of continuously, which I find breathtakingly disconcerting.
  3353. This INIT is free and is distributed under the GNU General Public License;
  3354. this archive contains complete THINK C 6.0.1 source code and project files
  3355. for the INIT.  If you do not have FTP access, e-mail the author for a copy of
  3356. the INIT, the source code, or a list of other programs by the same author.
  3357. The address is f8dy@netaxs.com.
  3358.  
  3359. This code demonstrates the basics of writing and installing a VBL. This code
  3360. should work under any system, with any monitor, on all Macintoshes.  Please
  3361. report any bugs/comments/suggestions to f8dy@netaxs.com.
  3362.  
  3363. Stoned Mouse 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group.
  3364.  
  3365.  
  3366. #### BINHEX     streamer-c.hqx   ****
  3367.  
  3368. Date: Fri, 30 Apr 1993 14:17:32 -0700 (PDT) 
  3369. From: HOWELL@UPS.EDU (JON)
  3370. Subject: Streamer.hqx 
  3371.  
  3372. Here's the source to Bill's streamer, a little backup program for QIC24 
  3373. streaming tape drives and such. I took it home and compiled it, and 
  3374. discovered this version waits indefinately for devices that don't exist 
  3375. on the bus. (while(); sorts of loops in scsi.c) After I fixed that to 
  3376. timeout, it seems to work right. It's pretty basic -- tiny interface, 
  3377. very little error handling (though error checking stuff is in place), 
  3378. but this is how he sent it.
  3379.      I intend to upgrade it a bit, and when I do, I'll send it in. Bill 
  3380. said it is to be under the usual copyleft freeware sort of arrangement 
  3381. -- distribute it, but it remains his property. (don't sell it.)
  3382.  
  3383. (thanks, Bill!)
  3384.      --Jon
  3385. ----
  3386. Here it is (a bit of a mess I'm afraid - kind of in between versions - 
  3387. so if you can't get it to compile properly, get back to me). It's a
  3388. binhexed stuffit file, so you should be able to unpack everything OK.
  3389. I've not bothered to split it up into little pieces since most mailers
  3390. seem to be able to cope nowadays.
  3391.  
  3392. If it does get to you OK, then please let me know (and yes, do forward
  3393. it to macgifts)
  3394.  
  3395. Have fun!
  3396.  
  3397. Bill
  3398.  
  3399.  
  3400. #### BINHEX     suntar-132-c.hqx   ****
  3401.  
  3402. From: speranza@cirfid.unibo.it (Sauro Speranza)
  3403. Subject: UPLOADING suntar1.3.2src.cpt.hqx 
  3404. Date: Tue, 3 Nov 92 13:37:09 MET 
  3405.  
  3406. [Source cdode for sun tar application uploaded the other day -- Gordon]
  3407.  
  3408.  
  3409. #### BINHEX     surfer-c.hqx   ****
  3410.  
  3411. From: rew8422@ultb.isc.rit.edu (R.E. Wilhelm )
  3412. Subject: Think C commToolbox stuff 
  3413. Date: Sun, 3 May 92 20:56:01 EDT 
  3414.  
  3415. Dear Moderators,
  3416.    This archive contains the source code for a program called Surfer,
  3417. which is a demo of the Macintosh Communications Toolbox. Also included
  3418. are some libraries and interfaces that work with Think C 4.0(Think c 5
  3419. include these files). The program compiles under Think C 4.0. I'm not
  3420. smart enough to get it to work under version 5.0:) but I'm sure it can
  3421. be done. Enjoy.
  3422.  
  3423. Surfer was originally a Pascal program release by Mac DTS for MPW
  3424. Pascal.
  3425.  
  3426. Ron Wilhelm
  3427. rew8422@ultb.ics.rit.edu
  3428. ----------8<--------------------------8<------------------------8<---------
  3429.  
  3430. #### BINHEX     talk-106-pas.hqx   ****
  3431.  
  3432. Date: Sat, 25 Apr 1992 13:07:01 +0800 
  3433. From: Peter N Lewis <peter@cujo.curtin.edu.au>
  3434. Subject: source/pascal/talk-106-source.hqx 
  3435.  
  3436.  
  3437. This is the source code for Talk v1.0.6 & Talkd v1.0.6.
  3438.  
  3439. Talk and talkd is an implementation of the UNIX Talk protocol for 
  3440. Macs with MacTCP.  Talkd is a background only application
  3441. that notifies you when a talk connection is requested, and Talk is a 
  3442. talk client, allowing you to talk to other machines. Both are System 7 
  3443. friendly (but hopefully not dependent).
  3444.  
  3445. Talk&Talkd are Povertyware, which basically means you get to send me five
  3446. dollars if you can.  The source code may be used for any non-commertial
  3447. purposes as long as I get a mention in the about box and documentation
  3448. of any derivative program.
  3449.  
  3450. Hope you like them,
  3451.    Peter. <peter@cujo.curtin.edu.au>
  3452.  
  3453. Talk 1.0.6 & Talkd 1.0.6 Copyright 1992, Peter N Lewis 
  3454.  
  3455. #### BINHEX     talking-clock-10b1-c.hqx   ****
  3456.  
  3457. From macmod Thu Aug 26 20:12:40 1993
  3458. Date: Fri, 27 Aug 93 01:06:08 +0200
  3459. From: d88-jwa@nada.kth.se
  3460. Subject: Talking Clock - Source Code! 1.0b1
  3461.  
  3462.  
  3463. For those of you more interested in the "why" than the "because,"
  3464. here comes source code for Talking Clock. It is structured so
  3465. is can work as a minimalistic application shell as basis for your
  3466. own applications, with a less than 10K overhead for windows and menu
  3467. management! Read the license; it's freeware.
  3468.  
  3469.                         / h+
  3470. --
  3471.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  3472.  
  3473.    What we need is a good GNU [...] licence manager implementation.
  3474.                      -- Raphael Manfredi
  3475.  
  3476.  
  3477.  
  3478.  
  3479.  
  3480.  
  3481.  
  3482.  
  3483. talking-clock-source.cpt.hqx
  3484.  
  3485. #### BINHEX     talking-clock-pro-c.hqx   ****
  3486.  
  3487. Date: Sat, 4 Sep 93 20:46:34 +0200 
  3488. From: d88-jwa@nada.kth.se
  3489. Subject: Talking Clock Pro(tm) Source Code 
  3490.  
  3491.  
  3492. For those in need of a simple platform to build an application upon,
  3493. or simply wanting to see how to implement an AppleScript-savvy talking
  3494. clock faceless background extension, I present:
  3495.  
  3496. The Source.
  3497.  
  3498. Cheers,
  3499.  
  3500.                             / h+
  3501. --
  3502.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  3503.     Hackers push all the right buttons.
  3504.  
  3505.  
  3506.  
  3507.  
  3508. #### BINHEX     task-manager-221-c.hqx   ****
  3509.  
  3510. Date: 22 Jun 92 10:31:23 U 
  3511. From: "Michael Hecht" <michael_hecht@mac.sas.com>
  3512. Subject: Task Manager 2.2.1 
  3513.  
  3514. Regarding   Task Manager 2.2.1
  3515. The Task Manager is a C source code package for creating and managing
  3516. tasks--separate execution threads that run nonpreemptively in the background.
  3517. Tasks should periodically call a Task Manager yielding routine to allow other
  3518. tasks to run. Tasks are ideal for lengthy processes that you would like to run
  3519. in the background, since the task runs in a separate execution thread from your
  3520. event loop.
  3521.  
  3522. --Michael
  3523.  
  3524.  
  3525. =======================================================================
  3526. Michael P. Hecht                 | Internet:  Michael_Hecht@mac.sas.com
  3527. SAS Institute Inc.; Cary, NC USA | AppleLink: SAS.HECHT
  3528.  
  3529.  
  3530.  
  3531. #### BINHEX     task-manager-pas.hqx   ****
  3532.  
  3533. Date: Tue, 24 Nov 1992 14:05:12 +0800 
  3534. From: Peter N Lewis <peter@ncrpda.curtin.edu.au>
  3535. Subject: source/pascal/TaskManager-211P.hqx 
  3536.  
  3537.  
  3538. _______________________________________________________________________
  3539. Peter N Lewis <peter@ncrpda.curtin.edu.au>           Ph: +61 9 368 2055
  3540. The Task Manager
  3541. Version 2.2.1P
  3542.  
  3543. This software source package is Copyright   1990 91 by Michael Hecht. 
  3544. All Rights Reserved. It may be freely distributed in source or object 
  3545. code format; however, the source code may not be sold for profit or 
  3546. charged for in any way. 
  3547.  
  3548. The Task Manager is a package for creating and managing tasks-separate 
  3549. execution threads that run nonpreemptively in the background. Tasks 
  3550. should periodically call a Task Manager yielding routine to allow other 
  3551. tasks to run. Tasks are ideal for lengthy processes that you would 
  3552. like to run in the background, since the task runs in a separate 
  3553. execution thread from your event loop.
  3554.  
  3555. Michael Hecht wrote The Task Manager using THINK C 5.0.1, and I 
  3556. converted in to Pascal using THINK Pascal 4.0.1.   The documentation 
  3557. is unchanged from Michael's, so it refers to C prodcedure's, but 
  3558. I'm sure you can figure it out.
  3559.  
  3560. Hope its useful to someone,
  3561.    Peter. <peter@ncrpda.curtin.edu.au>
  3562.  
  3563. Task Manager v2.2.1P Copyright 1990-92 Michael Hecht
  3564.  
  3565.  
  3566. #### BINHEX     tcl-terminalpane-10.hqx   ****
  3567.  
  3568. Date: Tue, 17 Aug 1993 14:34:08 -0600
  3569. From: Eric Scouten <scouten@staff.tc.umn.edu>
  3570. Subject: /source/c/tcl-terminalpane-10.sit
  3571.  
  3572. The enclosed file is a source code snippet for Think C 6.0 and TCL. It
  3573. provides a basic 24*80 terminal display for use in terminal-style programs.
  3574. Handles basic display functions, but does not provide advanced terminal
  3575. emulation (i.e. does not include VT100).
  3576.  
  3577. Freeware. Copyright (C) 1993, Eric Scouten, FrostByte/Design.
  3578.  
  3579. Thanks for including it...
  3580.  
  3581. -Eric
  3582. ---
  3583. Eric Scouten                         Internet:    scouten@staff.tc.umn.edu     
  3584. Student Affairs Research             Bitnet:      scouten@umnacvx
  3585. 110 Morrill Hall * Univ of Minn      Phone:       +1 612 626 0746
  3586. Minneapolis, MN 55455 USA
  3587.  
  3588. "To start with, we must stop using students as the _escape_ goats." -Anon.
  3589.  
  3590.  
  3591. #### BINHEX     tcp-interface-example-pas.hqx   ****
  3592.  
  3593. Date: Thu, 10 Dec 1992 11:27:56 +0800 
  3594. From: Peter N Lewis <peter@ncrpda.curtin.edu.au>
  3595. Subject: source/pascal/tcpexample.hqx 
  3596.  
  3597.  
  3598. This is some example code to demonstrate the use of my TCP unis.
  3599. These units implement a relatively high level interface to MacTCP,
  3600. and allow fairly easy writing of TCP applications in Pascal using
  3601. event driven programming.  The example program is not a full shell, 
  3602. it simply implements a very basic finger to a fixed user@host.
  3603. It should be fairly easy to understand.  I've used the code in many
  3604. apps, most of which are available from various ftp sites, or from
  3605. redback.cs.uwa.edu.au in /others/peterlewis.
  3606.  
  3607. Hope its useful to someone,
  3608.    Peter. <peter@ncrpda.curtin.edu.au>
  3609.  
  3610. TCPExample v1.0.0 Copyright 1992 Peter N Lewis 
  3611.  
  3612.  
  3613. #### BINHEX     tcp-oo-example-10.hqx   ****
  3614.  
  3615. Date: Thu, 1 Jul 1993 15:07:21 +0800 
  3616. From: Peter N Lewis <peter.lewis@info.curtin.edu.au>
  3617. Subject: source/pascal - TCPOOExample 1.0.0 
  3618.  
  3619.  
  3620. This is some example code to demonstrate the use of my Object
  3621. Oriented TCP units.  These units implement a relatively high level 
  3622. interface to MacTCP, and allow fairly easy writing of TCP 
  3623. applications in Pascal using event driven, object oriented 
  3624. programming.  The example program is not a full shell, 
  3625. it simply implements a very basic finger to a fixed user@host.
  3626. It should be fairly easy to understand.  I've used the code in many
  3627. apps, most of which are available from various ftp sites, or from
  3628. redback.cs.uwa.edu.au in /others/peterlewis.
  3629.  
  3630. Hope its useful to someone,
  3631.    Peter. <peter.lewis@info.curtin.edu.au>
  3632.  
  3633. TCPOOExample v1.0.0 Copyright 1993 Peter N Lewis 
  3634.  
  3635.  
  3636. #### BINHEX     te32k-12-c.hqx   ****
  3637.  
  3638. Subject: TE32K 1.2 
  3639. Date: Sun, 7 Mar 1993 11:56:27 -0500 
  3640. From: Roy Wood <rrwood@canrem.com>
  3641.  
  3642. Here is TE32K version 1.2, which should be archived as
  3643.  
  3644.                     /info-mac/source/c/te32k12.hqx
  3645.  
  3646. and replace the old te32k11.hqx version.
  3647.  
  3648. For the uninitiated, TE32K is a source-level replacement for the Mac
  3649. TextEdit package.  TE32K allows for editing of files larger than 32K.
  3650.  
  3651. Changes in v1.2 are:
  3652.  
  3653. - old TE32KGetText routine returned original handle to text, not a copy; 
  3654.   fixed by replacing old code with code supplied by Patrick C. Beard 
  3655.   <beard@cs.ucdavis.edu>
  3656. - added colour highlighting support to invertSelRange as described by 
  3657.   Lee A. Fyock <laf@mbunix.mitre.org>
  3658. - added better double-click + dragging support with code supplied by 
  3659.   Lee A. Fyock <laf@mbunix.mitre.org> (this works *really* nicely)
  3660.  
  3661. So, as you can see, I have pretty much been reduced to custodian this time
  3662. around.  =)
  3663.  
  3664.  
  3665. - Roy
  3666.  
  3667. --------------------- cut here ----------------------------
  3668.  
  3669.  
  3670. #### BINHEX     tetris-light-c.hqx   ****
  3671.  
  3672. From: Hoylen Sue <hoylen@central.sussex.ac.uk>
  3673. Subject: TetrisLight-src.cpt.hqx (Part 1/2)
  3674. Date: Fri, 13 Aug 93 12:35:26 BST
  3675.  
  3676.  
  3677. The following is a compact pro archive containing the Think C 5.0
  3678. sources for "Tetris Light".  This is a lightweight Tetris program
  3679. with source code freely available under the GNU General Public
  3680. License.
  3681.  
  3682. ---Beginning of Part 1/2---
  3683.  
  3684. #### BINHEX     think-c-gamma-table-11-c.hqx   ****
  3685.  
  3686. Date: Sat, 13 Mar 93 11:19:05 -0500 
  3687. From: Matt Slot <fprefect@engin.umich.edu>
  3688. Subject: THINK C Gamma Fade Library v1.1 
  3689.  
  3690.  
  3691. This is an update to an earlier posting of the same library, consisting
  3692.    mainly of bug fixes and documentation updates. 
  3693.  
  3694. Description: To do smooth fade in/out on Mac II machines, you can use 
  3695.    the enclosed library routines to adjust the color correction (gamma)
  3696.    table of the connected monitors. These routines are programmer friendly,
  3697.    and should run on any Mac II or later machine, under both system 7
  3698.    and system 6. Enclosed is also a quick demo application.
  3699.  
  3700. If you have any questions or problems with this package, drop me mail. The
  3701.    whole set is free to anyone interested. 
  3702.  
  3703. fprefect@engin.umich.edu
  3704. Matt Slot, CAEN Mac-Systems
  3705.  
  3706. #### BINHEX     think-c-various-c.hqx   ****
  3707.  
  3708. Date: Sun, 29 Apr 90 13:05 +0200
  3709. From: F86_FREDRIK@fyvax2.fy.chalmers.se
  3710. Subject: Some useful code for THINK C 4.0
  3711.  
  3712. This is an archive of some code in THINK C 4.0 that I find
  3713. useful, and use in many of my programming projects.
  3714. Included are
  3715.  
  3716. *    CInstance - A class to implement object persistence (i.e
  3717.     a convenient way to use a preferences file).
  3718.     
  3719. *    driver - A class upon which to build drivers and DAs in a
  3720.     simple and convenient way.
  3721.     
  3722. *    PasStrs - A number of functions that lets you have look-alikes
  3723.     for the C string functions (e.g. strcat, strcpy, etc.) that
  3724.     works with Pascal strings.
  3725.     
  3726. *    A modified version of oops.c that includes a new function -
  3727.     sizeofobj - that is used by the CInstance class.
  3728.  
  3729. I hope this proves useful to you. Enjoy!
  3730. (This is completely free.)
  3731.  
  3732. +-------------------------+--------------------------------+
  3733. |   Sven Axelsson         |  d83_sven_a@tekno.chalmers.se  |
  3734. |   dep:t of Linguistics  |          (^^ best ^^)          |
  3735. |   univ. of Gothenburg   |        dlv_sa@hum.gu.se        |
  3736. |   SWEDEN                |      usdsa@seguc21.bitnet      |
  3737. +-------------------------+--------------------------------+
  3738.  
  3739. --- cut here ---
  3740.  
  3741.  
  3742. #### BINHEX     tools-plus-lib-21.hqx   ****
  3743.  
  3744. Date: Mon, 22 Nov 1993 03:35:17 -0500
  3745. From: "Wayne K. Walrath" <walrath@cs.indiana.edu>
  3746. Subject: ToolsPlus C prog. libs 2.1
  3747.  
  3748. I downloaded this from Compu$erve a few nights ago. I have 
  3749. no connection to the company, Water's Edge Software.
  3750.  
  3751.   -wayne
  3752. walrathw@rferl.org
  3753.   RFE/RL Inc.
  3754.  
  3755. >From one of the ReadMe files:
  3756.  
  3757. Tools Plus is a library of routines that simplifies programming an
  3758. Apple Macintosh computer, and significantly reduces the time it takes
  3759. to write and debug a program.  With Tools Plus, you program at a much
  3760. higher level when creating, maintaining, and working with a
  3761. user-interface, so you can develop applications
  3762.  
  3763. more easily
  3764. more quickly
  3765. with less source code
  3766. with fewer bugs
  3767. and with more features
  3768.  
  3769. than if you use ordinary C or Pascal.  Tools Plus libraries can be
  3770. used by programmers developing applications in THINK C or THINK
  3771. Pascal.
  3772.  
  3773.   With Tools Plus, you can create and maintain a user-interface more
  3774. easily, without having to create elements yourself.  Event handling is
  3775. dramatically simplified, and most of the processes that define a
  3776. Mac-standard interface are performed automatically.
  3777.   Registered users get free support and a comprehensive, illustrated
  3778. 180-page user manual, and may distribute programs created with Tools
  3779. Plus royalty-free.
  3780.  
  3781.   Tools Plus performs seamlessly on Macintoshes runningI
  3782.     System 5 (Finder or MultiFinder)
  3783.     System 6 (Finder or MultiFinder)
  3784.     System 7
  3785.  
  3786. This fully featured copy of Tools Plus is distributed at no cost as
  3787. Shareware.  The purpose of this is to allow potential users to
  3788. EVALUATE the software before buying it.  There are, however, terms and
  3789. conditions to using this product, even for the purpose of evaluation.
  3790.  
  3791. ShareWare price: 149.00 US$
  3792.  
  3793.  
  3794.  
  3795. #### TEXT       unfolder-20-c.txt   ****
  3796.  
  3797. Date: Wed, 20 Oct 1993 22:53:52 -0400 (EDT)
  3798. From: hshubs@BIX.com
  3799. Subject: Unfolder 2.0 source
  3800.  
  3801. This is the source code for Unfolder 2.0, so it might be named unfolder20.c,
  3802. and put in the same directory as unfolder20.hqx.
  3803.  
  3804. /*
  3805.  * The Unfolder - program to reconstitute MacBinary (II) encoded files.
  3806.  *
  3807.  * by various BIXen in the 'mac.hack/tutorial', started on 25 December 1989
  3808.  *
  3809.  * Originally written by Don Sample, Howard Shubs, and Bob Perkins on
  3810.  * the BYTE Information eXchange (BIX), this program is intended to allow
  3811.  * people with a C compiler and no way to transfer resources to their Mac
  3812.  * to create a way to deal with Mac files which have been downloaded to
  3813.  * non-Macintosh hardware.  This program will, when told to Unfold, 
  3814.  * reconstitute a MacBinary version 1 or 2 file to its original state.
  3815.  *
  3816.  * The program will work as-is under THINK C 5.0.2, with just the MacTraps
  3817.  
  3818. #### BINHEX     video-toolbox-930518-c.hqx   ****
  3819.  
  3820. Date: 18 May 1993 20:49:03 -0500 
  3821. From: "Denis Pelli" <denis_pelli@isr.syr.edu>
  3822. Subject: VideoToolbox.93.5.18 
  3823.  
  3824. Subject:VideoToolbox.93.5.18                          8:19 PM        5/18/93
  3825. Please accept the enclosed submission to the info-mac and other Mac archives.
  3826. It replaces an older version in info-mac/source/c.
  3827.  
  3828. VideoToolbox.93.5.18.sit
  3829. May 18, 1993
  3830.  
  3831. The VideoToolbox is a collection of nearly two hundred C subroutines and
  3832. several demo and utility programs written to do visual psychophysics with
  3833. Macintosh computers. It's free and may not be sold without permission. It
  3834. should be useful to anyone who wants to present accurately specified visual
  3835. stimuli or use the Mac for psychometric experiments. The text file "Video
  3836. synch" discusses all the ways of synchronizing programs to video displays and
  3837. the many pitfalls to avoid. The TimeVideo application checks out the timing of
  3838. all video devices in anticipation of their use in critical real-time
  3839. applications, e.g. movies or lookup-table animation. The demos
  3840. FlickeringGrating and Sandstorm, among others, show how to generate visual
  3841. stimuli such as spatiotemporal sinusoids with gaussian envelopes in space and
  3842. time, and dynamic white noise. Low-level routines control video timing and
  3843. lookup tables, display real-time movies, filter images, and implement the
  3844. luminance-control algorithms suggested by Pelli and Zhang. (D.G. Pelli and L.
  3845. Zhang, 1991, Accurate control of contrast on microcomputer displays. Vision
  3846. Research, 31, 1337-1350. Reprints are available.) High-level routines help
  3847. analyze psychophysical experiments (e.g. graphing or maximum-likelihood fitting
  3848. of psychometric data). This collection has been continually updated since 1991.
  3849. Many colleagues have indicated that they are using the software in their labs.
  3850. Most of the routines are Mac-specific, but some very useful routines, e.g. the
  3851. luminance-control, statistics, and maximum-likelihood fitting algorithms, could
  3852. easily be ported to other computers.
  3853.  
  3854. Denis Pelli
  3855. Professor of Neuroscience
  3856. Institute for Sensory Research
  3857. Syracuse University
  3858. Syracuse, NY 13244-5290
  3859. denis_pelli@isr.syr.edu
  3860.  
  3861. CHANGES DURING 5/93:
  3862. oTimeVideo 2.5 tests all video devices on any Mac running System 6.05 or later.
  3863. It tests gray and color modes, and measures and reports the gray-mode
  3864. color-transformation matrix. It no longer assumes any particular correspondence
  3865. between the video mode number and the pixel size. Many small bug fixes.
  3866. oSetEntriesQuickly.c now respects the setting of the device's gray/color mode, 
  3867. and maps to gray when appropriate. Changed prototype of macltset to 
  3868. specify the red, green, and blue arrays as "unsigned short" instead of "short".
  3869. oLuminance.c: If the driver is in gray mode (i.e. not color) then
  3870. LoadLuminances maps rgb to gray by simply copying the green component to the
  3871. red and blue components.
  3872. oGDVideo.c: Changed GDPrintGammaTable() to accept a simple file pointer instead
  3873. of an array of two file pointers.
  3874. oGrabSlotDrivers now checks for the Slot Manager, in response to bug report by
  3875. Jonathan Brecher.
  3876.  
  3877. CHANGES DURING 4/93:
  3878. oUpdated all projects and "Read me". 
  3879. oAdded explanation of tiling to PixMapToPostScript.c.
  3880. oGetPixBaseAddr32(PixMap **pm) returns the 32-bit address of the pixels/bits in
  3881. a pix/bitmap. In RectToAddress.c.
  3882. oSetEntriesQuickly.c no longer requires a 68020.
  3883. oMaximizeConsoleHeight.c now fully supports 1-bit QuickDraw.
  3884. oDeleted obsolete AddressToSlot and AddressToScreenDevice from
  3885. GetScreenDevice.c.
  3886. oMerged GDFrameRate.c and GDTimeClut.c to produce GDTime.c. Deleted obsolete
  3887. GDFramesPerClutUpdate, GDClutUpdateRate, and GDTimeClutUpdate.
  3888. oTimeVideo will test all video devices on any Mac running System 6.05 or later.
  3889. It tests gray and color modes, and measures and reports the "gray"
  3890. color-transformation matrix. It no longer assumes any particular correspondence
  3891. between the video mode number and the pixel size.
  3892. oGDCOLORS(device) is gone because its answer was misleading when in 16-bit or
  3893. 32-bit mode. Instead, use either GDClutSize(device) or GDColors(device), in
  3894. GDVideo.c, but take care to choose the right one, since they're not equivalent
  3895. when in more-than-8-bit modes. 
  3896. oGDVideo.c: Removed assumption, in all routines, that there is any particular
  3897. correspondence between the video mode number and the pixel size. New
  3898. GDHasMode(device,mode,&pixelSize,&pages) tells you whether a particular video
  3899. mode is supported by your video device. Added GDPrintGammaTable(). Deleted
  3900. GDModeName(). 
  3901.  
  3902. CHANGES DURING 3/93:
  3903. oMade RectToAddress compatible with the initial versions of 32-bit QuickDraw,
  3904. in which GetPixmapBaseAddr() did not work.
  3905. oEnhanced TimeVideo, producing a more comprehensive and intelligible report,
  3906. and subsuming the former TestCluts, which is now gone.
  3907. o GDSetEntriesByType(device,...) checks the (**device).gdType field and calls
  3908. GDSetEntries, GDDirectSetEntries, or nothing, as appropriate. In GDVideo.c.
  3909. oGDSetEntriesByTypeHighPriority does the same, but at high processor priority,
  3910. forcing the driver to behave synchronously. In GDVideo.c.
  3911. oGDInfo.c collects useful information about a video device. In GDVideo.c
  3912. oIdentifyVideo(device) returns a descriptive C string.  In Identify.c,.
  3913. oAdded the constant MAX_SCREENS=8 to VideoToolbox.h
  3914. oGDSaveGamma(device) saves a copy that GDRestoreGamma(device) later uses to
  3915. restore the gamma table. In GDVideo.c. 
  3916. oAdded UnclipScreen(device), RestoreScreenClipping(device),
  3917. SquareCorners(device), and RestoreCorners(device) to HideMenuBar.c, to extend
  3918. the clipping region to include the WHOLE screen. 
  3919. oGDOpenWindow/GDDisposeWindow call GDSaveGamma/GDRestoreGamma and
  3920. UnclipScreen/RestoreScreenClipping.
  3921.  
  3922. CHANGES DURING 2/93:
  3923. oFixed endless loop in PatchMacIIciVideoDriver in GDVideo.c that hung up any
  3924. program that called GDGetEntries, including the demos TestGDVideo and
  3925. TestSetEntriesQuickly.
  3926. oEnhanced PatchMacIIciVideoDriver to deal with ROM- as well as RAM-based video
  3927. drivers.
  3928. oFixed SetEntriesQuickly to work correctly on Toby Video Card, Macintosh
  3929. Display Card 8o24, and to work in 16-bit mode on Quadra.
  3930. oVideoToolbox.c explains how to create a precompiled header, for tenfold faster
  3931. compiles.
  3932. oGreatly increased the number of headers included by VideoToolbox.h, so that
  3933. most C files can now include just the VideoToolbox.h header.
  3934. oAdded tiny new demo, Grating.c, that shows how to load the clut and display a
  3935. grating.
  3936. oAdded SetPixelsQuickly.c to quickly peek or poke a row of pixels, bypassing
  3937. the color tables. It's more than ten times faster than using SetOnePixel.c,
  3938. which is now obsolete. This is the fastest way to get at the pixels in an
  3939. image, for image processing or synthesis. Works with bitmaps and pixmaps and
  3940. any size of pixel. Try the demos Grating and FlickeringGrating.
  3941. oGDOpenWindow now creates a full-screen window even on the main screen.
  3942. oAdded window=GDOpenWindow1(device) and GDDisposeWindow1(window), which work
  3943. with a WindowPtr instead of a CWindowPtr, for less hassle with casting.
  3944. oAddExplicitPalette(window), in GDOpenWindow.c, adds a palette with all colors
  3945. marked as explicit, so that you can use PmForeColor and PmBackColor to specify
  3946. literally what numbers you want to put into your pixels in drawing operations
  3947. like EraseRect() and DrawString().
  3948. oAdded PrintfExit.c, which prints out an error message and exits. Replaced all
  3949. calls to exit() in the VideoToolbox by calls to this routine, so many projects
  3950. will need to add it.
  3951. oRequire(), in PrintfExit.c, tests for any required fpu, cpu, and version of
  3952. QuickDraw, and fails gracefully if they're absent. 
  3953. oAll demos now call Require() in PrintfExit.c to test for presence of any
  3954. required fpu, cpu, and version of quickdraw, instead of crashing.
  3955. oEnhanced GDUncorrectedGamma() in GDVideo.c to work correctly with video
  3956. devices that use any version of the gamma table. This might have caused
  3957. TestCluts to report spurious driver errors.
  3958. oReplaced IdentifyCompiler.c and IdentifyMachine.c by the new Identify.c. Added
  3959. IdentifyVideo(device) and IdentifyModel().
  3960. oRenamed TestSetEntriesQuickly to TestCluts, and enhanced it to save detailed
  3961. results in file.
  3962. oEnhanced CopyBitsQuickly to return a nonzero int if an error occurred.
  3963. oAdded an image-multiplication mode to CopyBitsQuickly, and enabled it on
  3964. 2/18/93.
  3965. oAdded SwapPriority() to SetPriority.c, to be used just like SwapMMUMode().
  3966. oConvolveX.c now rounds to nearest integer, and supports 32-bit video
  3967. addressing.
  3968. oRenamed the file MatLab.c to ReadMatLabFile.c, though the functions themselves
  3969. are unchanged.
  3970. oIntroduced MATLAB conditional into VideoToolbox.h, to support creation of
  3971. MatLab external code resources, as implemented by David Brainard.
  3972.  
  3973.  
  3974.  
  3975.  
  3976. <<<<<< Attached TEXT file follows >>>>>>
  3977.  
  3978. #### BINHEX     voyeur-10-c.hqx   ****
  3979.  
  3980. From: f8dy@netaxs.netaxs.com (Mark Pilgrim)
  3981. Subject: Voyeur 1.0 (source code)
  3982. Date: Thu, 11 Nov 1993 12:28:14 -0500 (EST)
  3983.  
  3984. Voyeur 1.0 is a no-frills file viewer.  It allows you to view raw data (in
  3985. hexadecimal and ascii format) of either the data or resource fork of a
  3986. file.  You can't edit any of the information, but you can change the
  3987. type/creator information or modify the length (EOF) of either fork.
  3988.  
  3989. Voyeur is distributed under the GNU General Public License; this
  3990. archive contains complete THINK C 6.0.1 source code for the Voyeur
  3991. application, as well as complete source code for an external application
  3992. used to set up Voyeur's self-integrity checker.  You may freely re-
  3993. distribute this package as a whole; you may freely modify this application
  3994. and re-distribute it under the GNU General Public License.  See the file
  3995. "GNU General Public License" in this archive for details.
  3996.  
  3997. This code handles, among other things, events, menus, apple events, a prefs
  3998. file, Gestalt environment checking, hierarchical menus, dialogs, windows,
  3999. standard file dialogs, and the soon-to-be-famous "cough to continue" modal
  4000. dialog filter proc.  None of this is very well commented, but feel free to
  4001. direct any questions to f8dy@netaxs.com.
  4002.  
  4003. Voyeur 1.0 is copyright 1993 by Mark Pilgrim, MerriMac Software Group.
  4004.  
  4005.  
  4006. #### BINHEX     wdef-patch-21-c.hqx   ****
  4007.  
  4008. From: ROBERTO AVANZI 338188/SM <gandalf@sabrina.dei.unipd.it>
  4009. Subject: WDEF PAtch from apple:further changes 
  4010. Date: Mon, 22 Jun 92 11:18:03 GMT 
  4011.  
  4012. Hi, netters
  4013. WDEFPatch is an Apple sample code snippet that shows how to
  4014. add in a clean way a new behaviour to an existing WDEF. It adds
  4015. a new part in the window title bar that, when clicked, is reported
  4016. to the application. I implemented the tracking of that part.
  4017. In case you downloaded the improved WDEFPatch (originally from
  4018. Steve Falkenburg), in the meantime I discovered a funny quirk
  4019. in the system software WDEF. (at least, sys 7's). I found it
  4020. when adding a zoom box to the window. Falkenburg's had not, neither
  4021. did my original improvement. It can only be the system's misbehaviour
  4022. but luckily a workaround could be found very easily (and is clean).
  4023. I included the two apps. The one without workaround and one with it.
  4024. Read the source for details. Then laugh when you see what happens.
  4025. I feel my new knowledge can be useful also to others.
  4026. Enclosed is a binhexed-compactpro archive.
  4027. Roberto Avanzi.
  4028. <gandalf@sabrina.dei.unipd.it>
  4029.  
  4030. #### BINHEX     welcome-132.hqx   ****
  4031.  
  4032. From: IO92143@MAINE.maine.edu (Donna Foster)
  4033. Subject: Welcome! v1.3.2
  4034. Date:    Tue, 14 Dec 93 22:58:49 EST
  4035.  
  4036. Enclosed is the app and source for Welcome, an app which uses the Speech
  4037. Manager to read you the date, time, and a short message. (Run it between 6
  4038. and 12 on the 24th of December for a sample...) It's based on Welcome2,
  4039. an old app which used MacinTalk. If the author is out there somewhere, I'd
  4040. be happy to credit you....
  4041.  
  4042. Version 1.3.2 fixes two bugs--one appeared the week of Thanksgiving, when I
  4043. forgot to check whether I had typed == or =, and one appeared October 31,
  4044. when nothing happened. :-) This version is postcardware. Version 2.0, coming
  4045. out soon, will be customizable with ResEdit. Version 3.0, if ever, will let
  4046. you do it from within the program....
  4047.  
  4048.  
  4049. #### BINHEX     writeswell-jr-102-c.hqx   ****
  4050.  
  4051.